Results 1 to 5 of 5
  1. #1
    JerryAgin is offline Member
    Join Date
    Jan 2011
    Posts
    5
    Rep Power
    0

    Default Windows desktop shortcut doesn't work

    I have a user who is unable to run .jar files from her Windows 7 desktop. Windows interprets the shortcut icon as a file to be opened with Adobe Reader.

    I have a Java software product that is packaged by izcompile and launch4j and distributed via download from the web. The user has completed the download and installation. All the needed files are in place, and there is a shortcut on the desktop that points to a .jar file in the \Program Files (x86)\Intonia folder.

    Double-clicking the icon brings up a message saying Adobe Acrobat cannot open the file. Right-clicking it for Properties says "Opens with: adobe reader".

    I asked the user to go to Control Panel - Programs - Default Programs - Associate a File Type with a Program. She highlighted .jar and selected "Change Program", but Java was not offered as an option.

    I asked her to run ftype and assoc in a command prompt window. Here are the results:

    C:\Windows\system32>ftype jarfile
    jarfile="C:\Program Files (x86)\Java\jre7\bin\javaw.exe" -jar "%1" %*

    C:\Windows\system32>assoc .jar
    .jar=jarfile

    I asked the user to try reinstalling Java, and she says she did it, but it didn't change anything.

    Java runs fine if it's invoked from a .bat file that explicitly calls "\program files (x86)\java\jre7\bin\java.exe" -jar intonia.jar. It just won't start from the desktop shortcut. I have over 300 registered users and this is the first time anyone has reported such a problem.

    Does anyone have ideas what is going on here?

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default Re: Windows desktop shortcut doesn't work

    Did the default program to open jar still associated with the acrobat reader? when java was not offered as an option I believe there is a button that allowed you to search for the java.exe.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: Windows desktop shortcut doesn't work

    Moved from Advanced Java. This is a question about the Windows OS -- not about Java at all.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    JerryAgin is offline Member
    Join Date
    Jan 2011
    Posts
    5
    Rep Power
    0

    Default Re: Windows desktop shortcut doesn't work

    Quote Originally Posted by DarrylBurke View Post
    Moved from Advanced Java. This is a question about the Windows OS -- not about Java at all.

    db
    You're right, it *is* a Windows question, but specific to how Java gets installed and executed. Please suggest an alternate forum...

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: Windows desktop shortcut doesn't work

    Just about any Windows specific forum will do. Google can help you find this. But then the Windows help files will also help out as well.

Similar Threads

  1. Why doesn't this work?
    By mailman in forum Java Applets
    Replies: 5
    Last Post: 01-10-2012, 02:01 PM
  2. How to lock Windows XP desktop using Window/JWindow
    By chyrl in forum Advanced Java
    Replies: 11
    Last Post: 08-19-2010, 10:46 PM
  3. Replies: 1
    Last Post: 05-17-2010, 10:03 PM
  4. Replies: 0
    Last Post: 08-18-2009, 05:50 PM
  5. Senior Java Desktop Developer Work From Home
    By carino in forum Jobs Offered
    Replies: 5
    Last Post: 08-11-2009, 03:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •