-
Jar Files on Vista
Does anyone else have an issue with being able to just run (double-click) jar files on Windows Vista? For some reason it just won't work for me, I keep getting Main-Class not found errors etc. Although I'm not sure whether this is a 1.6.0 issue or a Vista issue, as I compiled the same program with the same Manifest file on version 1.5, and it runs fine on the computers at work (they haven't upgraded yet).
Just wondering if anyone could shed some light on this for me, cheers.
-
Try searching if you could pass -jar argument to java.exe along with %1. Either through registry hack or some other method. It is definitely vista's problem
-
Thought as much. I've just been creating batch files for each jar I've been wanting to run. Not the most ideal method but I guess it'll do for the time being.
The reason I wanted to know was just incase it was a problem with just my setup or if it was all vista installations. Students are mainly going to be using the program I've written, and no doubt they all got laptops (with vista installed) for christmas, and it sounds like it isn't going to run without this batch file :(
-
You need to associate the .jar files with the javaw.exe.
Such as you associate the .jpg files with ACDSee.
When next time you double-click the jar file, Vista will use javaw.exe to open the file, and your app will be launched!
-
Nope won't work. Generates "Could not find the Main Class" whereas if I use the batch file it works fine.