Executable jars under Vista 64x

K.I.L.E.R

Retarded moron
Veteran
Well I cannot install JEdit because it doesn't recognise Java.
I installed Java (SDK and otherwise), it works perfectly from command line but why cannot JEdit installer pick up on it?
 
Did you install the 64bit or 32bit JRE / JDK?
 
Right, but some software installers are looking for the registered JRE in different ways and usually won't catch the opposite version. At least this is true of some other software I've seen.
 
I'm using a 64-bit JRE and JDK.
Just to note, I have it running and installed in the most ugly way (batch files).

There has to be a way for Jar files to be automatically executed by Java.
 
how is a script or command-line ugly :p.
you mean a java -jar foo.jar works but not double-clicking on a .jar?
do you have something like a shortcut doing java -jar c:\schmoo\jedit.jar (I could very well live with that).
maybe you want to manually bake a file association (that would look like .jar files associated to an action java -jar %1 I guess)
 
A workaround is to create a shotcut to the program, then modify the Target as such: "C:\Program Files\Java\jre1.6.0_03\bin\javaw.exe" -jar "C:\Program Files\dvarchive\DVArchive.jar".

Another workaround, which should enable you to do a double-click on a jar is:
Select File, Right Click / Open With ... / Choose default program / Browse / browse to the "bin/javaw.exe" program / check "Always use the selected program to open this kind of file.

If you get an error message about unable to find main file, you may need to tweak a registry value. I had to add in the -jar before the "%1". For me this was at:

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Applications\javaw.exe\shell\open\command]
@="\"C:\\Program Files\\Java\\jre1.6.0_03\\bin\\javaw.exe\" [I]-jar[/I] \"%1\""
 
I blame Sun not including/registering the file association with the 64bit version.
 
Back
Top