Launch a document editor from the document in java?

Hi, I am trying to launch the application Acrobat reader for a .pdf document, but the Runtime utility throws an exception of process like this:
java.io.IOException: CreateProcess: mecanica.pdf error=193
     at java.lang.Win32Process.create(Native Method)
     at java.lang.Win32Process.<init>(Win32Process.java:66)
The code is:
try
Runtime.getRuntime().exec("mecanica.pdf");
}catch(Exception ex)
{ex.printStackTrace();}
How can I do it? Thanks in advance!

I am doing the same :
String command = "cmd c/ D:\\JavaTutor\\j3d_tutorial_ch0.pdf";
Process p = Runtime.getRuntime().exec(command);
It just hangs up on running a class, no application called ...
Does any one has any ideas what is wrong?
P.S.
I am running a Windows 2000

Similar Messages

  • PSE 7 Won't open photo  in Quick Editor from the Organizer using Vista

    I just installed the PSE 7 on Vista and am unable to open a photo in the quick editor from the organizer. It doesn't matter if its a raw file or jpg file. My ram memory is 3.0 gb and I have a duo core processor with 2.0 gb each. I've downloaded the plug in for the camera raw plug-in 5.2 and also deleted the organizer's preferences. Any other suggestions what it could be?

    >difficulty opening.
    I do not quite understand what you mean by "diffuculty" so suggest that you be more specific about what happens.
    Then also tell us if you have the same results when you select just one jpeg and attempt to go from the Organizer to Full Edit.
    Next try editing that same jpeg file by going directly from the Welcome screen to Edit and then use the Editor workspace File menu to open that jpeg file. Post your results.

  • I have Photoshop Elements 12.  When I open the organizer, click on a picture, then want to use the Editor, I get an error message.  If I click on the Editor from the Welcome screen, error message.  What happened to my Editor?

    I have Photoshop Elements 12.  When I open the organizer, click on a picture, then want to use the Editor, I get an error message.  If I click on the Editor from the Welcome screen, error message.  What happened to my Editor?

    I would suggest un-installing via the Windows control panel and then download again and re-install. Try an alternative link and validate with your 24 digit serial number - click here for PSE downloads

  • I have Elements 12 installed.  When I am in the catalog, click on a photo, then want to open the Editor, I get an error message.  If I click on Editor from the Welcome screen, I get the same error message.  Why doesn't Editor work?  Thanks.

    I have Elements 12 installed.  When I am in the catalog, click on a photo, then want to open the Editor, I get an error message.  If I click on Editor from the Welcome screen, I get the same error message.  Why doesn't Editor work?  Thanks.

    You'd better ask in the Elements forum.
    Photoshop Elements

  • IPad Air: Can't launch Safari or YouTube from the link in emails. Any idea?

    Can't launch Safari or YouTube from the link in emails. Any idea?

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
    No data will be lost.

  • Extract image and Features from the Catalog via JAVA API

    Hello,
    I would like to Extract image from the Catalog via JAVA API, Can anybody help on that? I also tried to extract the Features field form the Catalog but results in the error "Features field not found" Any ideas what could have wrong?
    Many thanks,
    Dharmi

    Hello,
    Can anybody tell me where i can find the latest JAVAAPI reference guide? I found the one for MDM 5.5 SP 1 but that also refers to the last parameter of the CatalogCache.Init as int and not string.
    I looked up in service.sap.com/instguides -> SAP Netweaver -> Release 4 -> Installation and there only following 3 files are there for MDM 5.5 SP2
    MDM 5.5 SP02 - Configuration Guide  SAP MDM
    MDM 5.5 SP02 - Installation Guide   SAP MDM
    MDM 5.5 SP02 – ERP-MDM Field Mapping and Check Tables
    Regards,
    Dharmi
    Message was edited by: Dharmi Tanna
    Message was edited by: Dharmi Tanna

  • Launch a specific app from the iBook?

    I'd like to launch an application from a different developer from the iBooks Author document. Is this possible without popping up safari or itunes, if the user already has the app?

    There's no way to associate a file with a specific app then....even across apple products (iBook>pages?) Well, that's a bummer.  I have found a work around (linking to a specific web page) but if that page moves, or goes away, the book becomes less relevant.
    Thanks for the answer KT.

  • Rocket launch...video from the rocket :D

    Hi All,Bit of an odd question, and i guess it's more a reasurance as i don't want to tell a client somethings that no true...So a client of mine has her own section of a shared drive in which she is archiving hundreds (if not 1000's) of documents/images for a project. Whilst i know there a better more efficient ways of doing this, the customer was addament this is how it had to be. But thats not the problemThe client has set-up name formats as the following: xxxx-xxxxxx-xxxx-xxx
    They have then created a large excell spreadsheet like an index to make it so people can search on there for what they are after, copy the file name and then paste it into search and get to the file they want.The issue is when they copy the full file name in the above format it cannot find the file, but if you delete out all of the "-" from the file name in...

    weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-spins-ooooooo pretty!!!!-going down-thunk---fta: Flight on a rocket - from lift-off to landing
    On 30 June 2015, the Mobile Rocket Base MORABA #DLR launched the sounding rocket MAPHEUS-5 at 06:55 CEST, carrying four DLR experiments on board - 1566 kilograms of propellant, an ascent velocity 6.5 times the speed of sound, or 2000 metres per second, a total of 253 kilometers altitude flight and a vertical landing in wet soil in Sweden.https://plus.google.com/+CiroVilla/posts/8WUZiUdRNUq?pid=6180178454256078258&oid=107522989205913...

  • Launching WinWord as editor from Form 11g text field.

    In Forms 6i FORMS60_EDITOR registry entry allowed users to launch MS Word from the application. This enabled them to have an editor with spell checks and other advance editing features. Upon exit from MS Word, the content of the file was saved in the column for the connected database.
    I am trying to find equivalent of that in Forms11g. Using webutil libraries calls to client_host or webutil_host successfully launches Notepad it but does not work with WinWord or Wordpad - it gives a non-oracle error 100501. I have tried using CLIENT_OLE2 but that is ending up with error WUO-705.
    Any insight to setup this feature in Froms11g setup will be helpful. Thanks.

    Thanks for the input but I was able to accomplish what I needed by modifying one of Oracle's demo form. Below is the code, when this procedure is called from a text field, in my case by double clicking, I am lanuching MS Word and the data is from the column is displayed in a word doc thus providing users spell check funcationality. I can modify data in Word doc and when I exit, data from word doc is saved in the varchar2 column in the database.
    PROCEDURE prc_Edit IS
    lFileName VARCHAR2(200);
         lFile client_Text_IO.File_Type;
         lLine varchar2(2000);
         lFirstEntry Boolean := TRUE;
    BEGIN
    lFileName := webutil_clientinfo.get_system_property('java.io.tmpdir') || WEBUTIL_FILE.GET_FILE_SEPARATOR || 'FormEditor.doc';
         lFile := client_Text_IO.Fopen(lFileName, 'w');
         client_text_io.put_line(lFile, replace(name_in(:SYSTEM.CURRENT_ITEM), chr(10), chr(13)||chr(10)));
         client_text_io.fclose (lFile);
    synchronize;
    begin
    client_host('winword.exe "' || lFileName || '"');
    synchronize;
    exception
         when others then
         message(SQLERRM);
    pause;
    end;
    copy(null, :SYSTEM.CURRENT_ITEM);
    begin
         lFile := client_Text_IO.Fopen(lFileName, 'r');
    loop
         client_text_io.get_line(lFile, lLine);
    if lFirstEntry then
         lFirstEntry := false;
    copy (name_in(:SYSTEM.CURRENT_ITEM) || lLine, :SYSTEM.CURRENT_ITEM);
    else
         if get_item_property(:SYSTEM.CURRENT_ITEM, MULTI_LINE) = 'TRUE' then
    copy (name_in(:SYSTEM.CURRENT_ITEM) || chr(10) || lLine, :SYSTEM.CURRENT_ITEM);
         else
    copy (name_in(:SYSTEM.CURRENT_ITEM) || lLine, :SYSTEM.CURRENT_ITEM);
    end if;
    end if;
    end loop;
    end;
    EXCEPTION
         WHEN NO_DATA_FOUND THEN CLIENT_TEXT_IO.FCLOSE(lFile);
    END;

  • Error Launching Web Analysis Report from the Hyperion Workspace

    Hi Everyone
    When launching the report as a HTML from the Workspace, the output flashes briefly on screen
    The view in the content pane disappears to leave a blank screen.
    When I Select View | Refresh. The following result is returned "Web Analysis Information" -1
    I have set the report in start up preferences. And Web Analysis preferences set to open as HTML
    After logging on again the following error is shown " An attempt to open "Actual vs Budget" Failed
    Show Details displays: this.getFocusRoot() is nullor not an object
    The reports all display correctly when launched from the Web Analysis studio
    Any ideas will be greatly appreciated
    Thanks
    G
    Web Analysis Version
    Server Information
    Version: 11.1.1.0.0.724
    Class Version: Java HotSpot(TM) Server VM
    VM Version: Java HotSpot(TM) Server VM
    VM Vendor: Sun Microsystems Inc.
    Java Vendor: Sun Microsystems Inc.
    Java Version: 1.5.0_11
    OS Name: Windows 2003
    OS Version: 5.2
    Total Memory: 66519040
    Free Memory: 22975320
    Locale: English (United States)
    Client Information
    Version: 11.1.1.0.0.724
    Class Version: Java HotSpot(TM) Client VM
    VM Version: Java HotSpot(TM) Client VM
    VM Vendor: Sun Microsystems Inc.
    Java Vendor: Sun Microsystems Inc.
    Java Version: 1.5.0_12
    OS Name: Windows 2003
    OS Version: 5.2
    Total Memory: 34766848
    Free Memory: 10688504
    Locale: English (United States)

    Hi Ian,
    Thanks for the advise but I have looked into your possible solution and referred to the Web Analysis user guide. I have a number of reports and when selecting the Design for HTML option - a number of objects are valid and should be displayed in the workspace.
    After creating reports from scratch - with valid objects - the problem still persists.
    Unfortunately, I don't think this provides a solution to the problem.
    Cheers
    G

  • HT201272 My You Tube launcher app has disappeared from the home page and can't be found. How do I reinstate it?

    The You Tube launcher app has disappeared from my home screen. How can I reinstate it?

    The YouTube app is not included in iOS 6. You will either need to try one of the YouTube apps from the store (there is an iPhone optimised app from google, and other people have said that they are working on an iPad version and there is Jasmine), or try accessing the mobile version via Safari : http://m.youtube.com (you can create a home screen shortcut for the site)

  • How do I launch Organizer and Edit from the welcome menu of photoshop Elements 12?

    I've been trying to get Adobe Photoshop Elements software to work on my computer since mid December.  I've had alot of responses to different options, even from Adobe themselves, and nothing is working.
    I get the Welcome Menu screen but when I click on either Organizer or Edit nothing happens.  I am the administrator on my home computer and tried launching as administrator but nothing works.
    I've tried launching it from "Program File" exe but nothing.  When I do this I get this error message; "Windows cannot find 'C:\Program Files (x86)\Adobe\Photoshop Elements12\PhotoshopElementsEditor.exe'. Make sure you typed the name correctly, and then try again.
    I've tried a Install Photoshop Elements in a simplified mode, nothing.   I've shut down my firewall and virus program and then install, nothing.
    Looks like I've stooped everyone.  Now I can't even return it because the package is open.
    Is there anyone out in cyber land that has a simple yet brilliant solution for me?
    My computer is a 64-bit Operating System, Intel (R) Core i7 CPU, 869 @ 2.80GHz, Windows 7 Professional.
    perplexed 

    If the executable is not being recognized you must have an incomplete or faulty installation.
    I would suggest uninstalling via the control panel (Add/Remove Programs) and then re-install again from a different source. You can use the link below for the free trial (it’s identical) and if you get it correctly installed, simply use your serial number to validate and make the product permanent.
    The link starts with the Adobe Download Assistant. You then browse to the photography programs to select PSE12 to start the download. After the download completes, installation should commence automatically but you may need to double click on Setup to start it off.
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us&PID=2159997

  • #2032 error observed while launching flex based application from the standalone machine.

    We trying to launch flex based application deployed on weblogic on RHEL 6.4 OS with flash version 15.0, found #2032 error on UI. Request help us on this scenario.

    hi all,
    UPDATE:
    i have some how managed to handle my error at both REQUEST MESSAGE peoplecode and at HANDLER peoplecode. Tested the webservice using SOAPUI tool. After passing all inputs required, the customer is not created and i am getting a blank response message which should contain the SETID and CUST_ID as response. Please help me out whether i am missing any Key part in creating a CUSTOMER. Note, i haven't written any Peoplecode for creation and i am also not aware how to do the same or where to write the logic for it.
    Kindly bare with me and do help me out as i m struck with it for long. Thanks in advance

  • Java applets won't load, have latest version of java installed, have removed all old versions from the hard drive, java console not working in firefox, any suggestions please ?

    java applets will not load,
    i have run the java test page & i have the latest version installed.
    have removed all old versions of java from my hard drive & restarted the computer.
    i have checked that java is enabled in the plug-ins and it is with version se 6 u22, also something called java development toolkit 6.0.220.4 np runtime script plug-in library for java (tm) deploy.
    if i click on java console in tolls nothing happens

    Hi,
    You might want to look in your control panel for 'Java' icon. It should give you an option to enable java plugin into your browser. Let me know if you still face the issue.
    Thanks!

  • Generating CSV file with column names and data from the MySQL with JAVA

    Hi all,
    Give small example on ...
    How can I add column names and data to a CSV from from MySQL.
    like
    example
    sequence_no, time_date, col_name, col_name
    123, 27-apr-2004, data, data
    234, 27-apr-2004, data, data
    Pls give small exeample on this.
    Thanks & Regards
    Rama Krishna

    Hello Rama Krishna,
    Check this code:
    Example below exports data from MySQL Select query to CSV file.
    testtable structure
    CREATE TABLE testtable
    (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    text varchar(45) NOT NULL,
    price integer not null);
    Application takes path of output file as an argument.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    public class automateExport {
        public static void main(String[] args) {
            DBase db = new DBase();
            Connection conn = db.connect(
                    "jdbc:mysql://localhost:3306/test","root","caspian");
            if (args.length != 1) {
                System.out.println(
                        "Usage: java automateExport [outputfile path] ");
                return;
            db.exportData(conn,args[0]);
    class DBase {
        public DBase() {
        public Connection connect(String db_connect_str,
                String db_userid, String db_password) {
            Connection conn;
            try {
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                conn = DriverManager.getConnection(db_connect_str,
                        db_userid, db_password);
            } catch(Exception e) {
                e.printStackTrace();
                conn = null;
            return conn;
        public void exportData(Connection conn,String filename) {
            Statement stmt;
            String query;
            try {
                stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
                        ResultSet.CONCUR_UPDATABLE);
                //For comma separated file
                query = "SELECT id,text,price into OUTFILE  '"+filename+
                        "' FIELDS TERMINATED BY ',' FROM testtable t";
                stmt.executeQuery(query);
            } catch(Exception e) {
                e.printStackTrace();
                stmt = null;
    Greetings,
    Praveen Gudapati

Maybe you are looking for