Results 1 to 5 of 5
- 12-05-2012, 03:13 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 5
- Rep Power
- 0
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?
- 12-05-2012, 03:27 AM #2
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 696
- Rep Power
- 6
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.
Website: Learn Java by Examples
- 12-05-2012, 05:03 AM #3
Re: Windows desktop shortcut doesn't work
Moved from Advanced Java. This is a question about the Windows OS -- not about Java at all.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 12-05-2012, 07:52 PM #4
Member
- Join Date
- Jan 2011
- Posts
- 5
- Rep Power
- 0
-
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
-
Why doesn't this work?
By mailman in forum Java AppletsReplies: 5Last Post: 01-10-2012, 01:01 PM -
How to lock Windows XP desktop using Window/JWindow
By chyrl in forum Advanced JavaReplies: 11Last Post: 08-19-2010, 09:46 PM -
Launch Java application with root privileges from gnome desktop shortcut.
By IYIaster in forum New To JavaReplies: 1Last Post: 05-17-2010, 09:03 PM -
Anyone know how to create a URL desktop shortcut from java?
By IYIaster in forum New To JavaReplies: 0Last Post: 08-18-2009, 04:50 PM -
Senior Java Desktop Developer Work From Home
By carino in forum Jobs OfferedReplies: 5Last Post: 08-11-2009, 02:45 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks