Double-click any file on desktop, calling JAVA PROGRAM

hi guys,
i'm breakin my head on doin this prog....when we double click a file icon of any file extension, my another
java program should be called.
how to do this???
pls send a sample code........asap!!!!!!!!!
regards,
Sam...

If you are using windows you could probably make a file association (for all extension types) to a batch file that in turn fires off 'java YourClass params_here'
- but if you (can) do this, won't you screw up your desktop - ie doubleclicking on an .xls or .doc will never fire up Excel or Word, unless you change the file extension associations back to what they were before? This would make your pc kind of strange to use...??!!
hi guys,
i'm breakin my head on doin this
doin this prog....when we double click a file icon of
any file extension, my another
java program should be called.
how to do this???
pls send a sample code........asap!!!!!!!!!
regards,
Sam...

Similar Messages

  • Hi, I have a problem with opening files on my desktop. When i double click a file I would lime to open nothing happens. Please help me with this problem :)

    Hi, I have a problem with opening files on my desktop. When i double click a file I would lime to open nothing happens. Please help me with this problem

    hello, this might be a preference in your google search settings. go to google.com/preferences and disable the option to ''Open search results in a new browser window''.

  • Opening photoshop from double click on file opens the app but doesn't open the file.

    This is a new behaviour... how can we solve it? Its very annoying!

    Thanks!
    Steps to reproduce:
    Having the photoshop closed...
    1 - Double click a psd file on the desktop (or any other place)
    2 - Photoshop loads until it gets to the normal window
    3 - The file wasn't opened
    4 - Go back to the desktop and double click the file
    5 - Photoshop (that is at this time already open), opens the file and displays it on screen
    Shouldn't it be opening the file after loading photoshop?
    details on my macbook and photoshop versions attached

  • How Can I Simulate Double-Clicking A File To Open It In The Default App Without Installing Default App?

    I have an app written with Visual Studio 2013. The app has code for opening a file using the standard OpenFileDialog and also has code (AutoOpenFile()) for opening a file when a user double-clicks on a file that is handled by the app. I have not yet created
    an installer for the app, so I won't be able to test it's AutoOpenFile() code...unless there is a way to simulate the process of auto-opening the double-clicked file without actually installing the app on my PC. Anyone?

    Thanks for your reply, Wyck. I already have the necessary code in my app for opening a file when I double-click on it. The problem is that the app is not currently installed on my PC. Until I do install it, is there a way I can test-run that code
    by double-clicking on an associated file?
    You lost me at: you want to test-run code that is not on your PC.
    O_o
    You want to double-click a file, and then...what do you want to have happen?  You want to run...something...that is not on your PC??
    The "simulation" is to launch your app from the command line and pass in the name of the file you wanted to simulate a "double-click" of.
    Regardless, you cannot get the shell to have a double-click of a file cause your application to launch unless you modify the registry to do so.  (This is tantamount to "install" to me.)
    In the spirit of continuing to be helpful, though, I'll assume that this is what you want to do and I'll show you how to get it done with the least amount of tampering with your registry.
    Here are minimally invasive registry modifications you need to make to get it to launch a program when you double-click your file.  It's pretty small.
    EXAMPLE ONLY:
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\.wyck]
    @="Wyck.Document"
    [HKEY_CLASSES_ROOT\Wyck.Document\shell\open\command]
    @="c:\\windows\\system32\\notepad.exe \"%1\""
    [You have to save the above with your appropriate modifications to a file with the
    .reg extension (e.g.: test.reg) and then you'll have to double-click the test.reg file to "merge" these settings into your registry.]
    The example above registers a file extension called .wyck and assigns a completely arbitrary class name to it called
    Wyck.Document.
    Then it associates a shell open command with the Wyck.Document class that causes
    notepad.exe to be passed the filename of the file you double-clicked (that's what the
    %1 does).  You are welcome to replace all the specific names with your own extensions and class names and replace notepad.exe with the path to your (test) executable.
    This executable will be launched, but not with a debugger attached.  To facilitate debugging it, you'll want to temporarily add some code to your program to pause when the program launches, possibly by showing a message box right at the very beginning
    of your main function that says "attach debugger now" so that you can attach a debugger to the process that was started by the shell, and then dismiss the message box and continue debugging.
    When you are done with your testing, you can simply manually delete those two registry keys using
    regedit.

  • Good afternoon ladies and gentlemen!   My question concerns the impossibility to open RAW-files directly from the program Adobe Bridge. At the moment when you open a RAW-file from Adobe Bridge by double-clicking, RAW-file is opened only in Photoshop. In t

    Good afternoon ladies and gentlemen!
    My question concerns the impossibility to open RAW-files directly from the program Adobe Bridge. At the moment when you open a RAW-file from Adobe Bridge by double-clicking, RAW-file is opened only in Photoshop. In the settings Adobe Bridge - in "open RAW-files by double-clicking in Adobe Camera Raw» box is checked. When you try any changes in the settings Adobe Bridge system displays a message:
    Bridge's parent application is not active. Bridge requires that a qualifying product has been launched at least once to enable this feature.
    The entire line of Adobe products on my computer updated to the latest updates. Previously, a family of products Adobe Photoshop on your computer is not set. Computer - PC, Windows 7 Enterprises.

    <moved from Adobe Creative Cloud to Bridge General Discussion>

  • How to invoke system editor by double click a file(windows)?

    how to invoke system editor by double click a file(windows)?
    Just like that, double click a file named a.doc, windows will open it by word.exe.

    I try that:
    exec("cmd /c start winword \"c:\dir\a b.doc\"");
    like this posting(http://forum.java.sun.com/thread.jspa?forumID=57&threadID=634576 ), and It is ok.
    But now I make a file list with different files, .pdf,.xls,.doc and so on, I wanna double click to open one with its default system editor.
    if no space:
    exec("cmd /c start " + file);
    will invoke the default editor to open it. if space, it can't do it.
    And now I rename all files, replace space to _.

  • When I click on file on desktop it highlights another area on screen

    Clicking on any file on desktop cause a blank area on screen to make "boxes"

    Thank you both for your help. sorry for the delay but I have been away. No 1 reply sorted the problem, thank you. However I have now installed Team Viewer as a free download so my son can access my PC to correct my difficulties. I would recomend this facility to anyone like me who doesn't understand the first thing about computers.

  • Double-clicking a file

    When I double-click a file it will open the file in CS6 version 13.0.1, but then after a while double-clicking will no longer open jpeg or raw files.  I can open the same files by going to File > Open in the Menu Bar. 
    When I am simply opening downloaded files from my camera, I can open 200-300 by double-clicking with no problems.  However, at times when I am working on an image, it is not long before I can't open a file by double-clicking.  It will open a blank Photoshop window, but without any Toolbar or Menu Bars.
    This happens on a regular basis.  Sometimes, also, Photoshop is slow to Quit, for no apparent reason.
    Is anyone aware of this problem?

    Still having this problem.
    If I open a jpeg and just change the name, then Save As to a folder, I can then open another jpeg by double-clicking.
    However, whenever I open a jpeg and make changes to the image in Photoshop, then Save As to a folder, I can then no longer open a jpeg by double-clicking.  Photoshop will open, but the jpeg will not open.
    Since this only happens after making changes to a jpeg in Photoshop, it seems to me the problem is with something in Photoshop, and has nothing to do with my OS.

  • Double-clicking PDF file on Mac fails to load PDF

    Using Mac, OS X Mavericks (but the problem has persisted though three versions of OS X and has continued in Mavericks: It is NOT new in Mavericks).
    If Acrobat Pro is already running, double-clicking a file displays an error: The document "xxx.pdf" could not be opened. Acrobat cannot open files in the "Adobe PDF document" format. Clearly, Acrobat CAN open these documents. If Acrobat Pro is not already running, double-click xxx.pdf opens in Acrobat just fine. This has been the cast through three operating systems, and two versions of Acrobat pro. What is up?
    This happens with all PDF files, which all open correctly if Acrobat is not currently running. THe files are not invalid, the file association in OS X is valid, everything works FINE if Acrobat is not already running with a PDF file open when I double-click a PDF file. Since there are a zillion questions about this online, I have to believe it's a continuing problem. It has been a problem for me for several years.
    Any thoughts? -- Ken

    I just double checked and I opened Acrobat XI first then  did ⌘-H to hide Acrobat. Then I located a PDF and Double Clicked.
    I've never had your issue since OSX.2.8 up to OSX.9.0 (Mavericks).  So it’s a problem with your set up or some type of Utilitity , Plugin or extension is interfering.
    I don't know how to tell you how to troubleshoot.
    Try the Following:
    Restart with shift key down
    Then open acrobat.
    Then Hide Acrobat and double click on a PDF.
    If you don't have the problem you have a a Startup Item.

  • Window 8.1, adobe reader XI, when i double clicked pdf file, nothing happen.

    hi.
    i using window 8.1,
    adobe reader version XI.
    when i installed reader xi, that worked well.
    after some hours pass,  double click pdf file and nothing happen.(only can see adobe reader on window task manager list)
    i reinstalled reader several times and deleted program files(x86)/adobe folder too.
    then worked well only some hours and not works again
    can you help me plz?

    Hi,
    You have to remove the back hand file which was present in the Local Disk C >> Program Data >> Acrobat, if you remove this file. It will remove the SSH (Software System History) from the PC. Then you can efficiently reinstall the Adobe Acrobat XI

  • Double-click in Files panel will not open a file

    Double-click in Files panel will not open a file. Instead
    alert message appears (I will translate from Czech): "Design notes
    are not allowed for this file. If you want to use Design notes...".
    I do not want use Design notes, I want to open a file from File
    Panel.
    The same issue is when opening by right-click/Open. The only
    (and unconfortable) way to open a file from Files panel is to
    right-click/Open in program/Dreamweaver, this works.
    Do you know why? help me, please, this disturbs me very much.
    I have clean installation of up to date CS3 Design Premium
    (Version 9.0 build 41) on WinXP SP2. Previous version of DW (v8)
    worked fine in this way. Associations in system are set OK, I
    think, because double-clicking in my file manager really opens for
    examle PHP files in DW.

    Also Drag & Drop from Files panel is not functioning.
    Sometimes neither alert appears, simply nothing happen.
    Note: I am trying usual files like PHP or HTML files, but
    also others (PDF, CSS) with the same result - nothing
    happens.

  • 4.0.1 crashes now when you double click a file to edit in source monitor

    If I double click a file to watch it in Media Browser or in the project window premiere crashes. In fact the only way I can open a source window to set in and out points is if the clip is in the timeline.
    This makes editing with premiere almost unusable. It tried it with a few different file types. At least I have AAF so I can take my projects back into CS3 till this gets fixed.

    My Vista 64 premiere install is all messed up. Adobe Media Encoder completely freezes. Probably OE but it was working fine yesterday. The only thing installed on my Vista 64 is Adobe CS4 and only editing related drivers are installed.
    My Vista 32 (on a seperate disk) is working fine with Premiere but Adobe Media Encoder doesn't want update.
    All messed up here. At least it's Friday.

  • Cannot call ANY stored functions from my Java program

    My problem is that I cannot call ANY stored procedure from my Java
    program. Here is the code for one of my stored procedures which runs
    very well in PL/SQL:
    PL/SQL code:
    CREATE OR REPLACE PACKAGE types AS
    TYPE cursorType IS REF CURSOR;
    END;
    CREATE OR REPLACE FUNCTION list_recs (id IN NUMBER)
    RETURN types.cursorType IS tracks_cursor types.cursorType;
    BEGIN
    OPEN tracks_cursor FOR
    SELECT * FROM accounts1
    WHERE id = row_number;
    RETURN tracks_cursor;
    END;
    variable c refcursor
    exec :c := list_recs(11)
    SQL> print c
    COLUMN1 A1 ROW_NUMBER
    rec_11 jacob 11
    rec_12 jacob 11
    rec_13 jacob 11
    rec_14 jacob 11
    rec_15 jacob 11
    Here is my Java code:
    import java.sql.*;
    import java.io.*;
    import oracle.jdbc.driver.*;
    class list_recs
    public static void main(String args[]) throws SQLException,
    IOException
    String query;
    CallableStatement cstmt = null;
    ResultSet cursor;
    // input parameters for the stored function
    String user_name = "jacob";
    // user name and password
    String user = "jnikom";
    String pass = "jnikom";
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    try { Class.forName ("oracle.jdbc.driver.OracleDriver"); }
    catch (ClassNotFoundException e)
    { System.out.println("Could not load driver"); }
    Connection conn =
    DriverManager.getConnection (
    "jdbc:oracle:thin:@10.52.0.25:1521:bosdev",user,pass);
    try
    String sql = "{ ? = call list_recs(?) }";
    cstmt = conn.prepareCall(sql);
    // Use OracleTypes.CURSOR as the OUT parameter type
    cstmt.registerOutParameter(1, OracleTypes.CURSOR);
    String id = "11";
    cstmt.setInt(2, Integer.parseInt(id));
    // Execute the function and get the return object from the call
    cstmt.executeQuery();
    ResultSet rset = (ResultSet) cstmt.getObject(1);
    while (rset.next())
    System.out.print(rset.getString(1) + " ");
    System.out.print(rset.getString(2) + " ");
    System.out.println(rset.getString(3) + " ");
    catch (SQLException e)
    System.out.println("Could not call stored function");
    e.printStackTrace();
    return;
    finally
    cstmt.close();
    conn.close();
    System.out.println("Stored function was called");
    Here is how I run it, using Win2K and Oracle9 on Solaris:
    C:\Jacob\Work\Java\Test\Vaultus\Oracle9i\FunctionReturnsResultset>java
    list_recs
    Could not call stored function
    java.sql.SQLException: ORA-00600: internal error code, arguments:
    [ttcgcshnd-1], [0], [], [], [], [], [], []
    at
    oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
    at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:889)
    at
    oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:490)
    at
    oracle.jdbc.driver.OracleStatement.getCursorValue(OracleStatement.java:2661)
    at
    oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:4189)
    at
    oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:4123)
    at
    oracle.jdbc.driver.OracleCallableStatement.getObject(OracleCallableStatement.java:541)
    at list_recs.main(list_recs.java:42)
    C:\Jacob\Work\Java\Test\Vaultus\Oracle9i\FunctionReturnsResultset>
    Any help is greatly appreciated,
    Jacob Nikom

    Thank you for your suggestion.
    I tried it, but got the same result. I think the difference in the syntax is due to the Oracle versus SQL92 standard
    conformance. Your statament is the Oracle version and mine is the SQL92. I think both statements are acceptable
    by the Oracle.
    Regards,
    Jacob Nikom

  • Ai and eps will not open in Ai when you double click the file icon or drag onto to app icon

    I get the following error messages when I double click the files icon or drag the file to the Ai app icon in the dock. The only way to open the files is via File > Open with in the app.
    Photoshop and InDesign files open fine, it's just Illustrator.
    The document “xyz.ai” could not be opened. Illustrator cannot open files in the “Adobe Illustrator Document” format.
    The document “xyz.eps” could not be opened. Illustrator cannot open files in the “EPS File” format.
    Running CS5.5 on Mavericks then Yosemite.

    th1nk,
    I believe the right order/way is to update the OS, then reinstall the applications. Was that how you did it?

  • Node double click ------Any one help....~~~~

    Hi all,
    I need to process such a scenario:
    1,when I double click open project, which is a link in CL_GUI_SIMPLE_TREE.
    then this will trigger the node double click operation, which will call the node double click handling method.
    2,And when I do a another operation such as create project, after the creation, how can I trigger the node double click event in order to call the node double click handling method?
    the double click handling method can not be called directly.(I just try to call the method, but found that the result is not what I want)
    could I just add an event by code?
    Thank you all very much!
    Best Regards,
    Zhengyong

    Hi Clemens,
    thank you!
    I just do call the method.
    but this can not work, maybe there are some other problems,
    in the double click handling method, I do this:
    "first some code to update the LT_WS.
    call method LIST_VIEWER->SET_TABLE_FOR_FIRST_DISPLAY
             exporting I_STRUCTURE_NAME = 'bct_s_ws'
                       IS_LAYOUT = LIST_LAYOUT
             changing  IT_OUTTAB         = LT_WS
                       it_fieldcatalog  = me->lt_fcat.
    the LT_WS is a content table, even the content is new, but the list viewer didn't reflect this change.
    the LIST_VIEWER refer to CL_GUI_ALV_GRID.
    maybe this is the problem of CL_GUI_ALV_GRID.
    and I even use the refresh method, but it does not work. LIST_VIEWER->refresh_table_display( ).
    Thanks you for you kind help
    best Regards,
    Zhengyong
    Edited by: Zhengyong Zhang on Oct 30, 2009 9:40 AM

Maybe you are looking for

  • Creation of initial DB for new application

    Hello, I have to develop an application in a not connected environment, having synchronization with a master repository, so I'm using Oracle Lite. As far as I understood the process of creation : 1- Create local DB 2- Create the application 3- Publis

  • Can Thunderbolt and Firewire co-exist?

    The question: Are there any known problems with using an external Thunderbolt drive and occasionally switching between Thunderbolt and Firewire800 (via the TB to FW adapter)? More detail: I'm considering the purchase of a thunderbolt external drive a

  • V8 blocks attachment downloads from SMF forums

    Since updating to v8, attachments in the SMF forums I run are not being properly recognised, and (although the file type may be recognised fir, say, a JPEG file) it is offered for saving as index.php. A midi or MP3 attachment will be offered for savi

  • Oracle Service Bus For loop getting out of memory error

    I have a business service that is based on a JCA adapter to fetch an undertimed amout of records from a database.  I then need to upload those to another system using a webservice designed by an external source.  This web service will only accept upt

  • ABAP is a compiler or interpreter ?

    ABAP is a compiler or interpreter ? also how is it ? or why ?