This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes jar file problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar file problem" Watch "jar file problem" New topic
Author

jar file problem

Mario A. Villamizar
Ranch Hand

Joined: Mar 14, 2002
Posts: 35
Hi,
I really don't know in which category to this post, so I thoght this could be the best one.
I have windows xp, java 1.4.1. before i had some java programs in a jar file and use to work when I double-click on it, but no any more, for some reason windows doesn't know wich program to use to run it and ask me to choose one, but I been trying without success, how can I configure again.
thanks


MA Villamizar
Chad McGowan
Ranch Hand

Joined: May 10, 2001
Posts: 265
You need to open this file with javaw. This is found in your jdk's /bin directory. In xp, you can click control panel, folder options, then click the file types tab to edit the default program for an extension.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
On my system, the specific action is
"G:\Program Files\Java\j2re1.4.2\bin\javaw.exe" -jar "%1" %*
I assume this is the value established by the J2SDK 1.4.2 installation routine.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jar file problem
 
Similar Threads
include jar in an executable jar
EXE in Java?
JAR execute
classpath
Converting .class to .com