Just wondering if anyone knows the answer to 2 registry related questions I have. I'm using Vista 64 bit if that matters at all.
So I was messing around with the registry and gave jar files an icon and made them call java.exe -jar, and I put a compile option on the right click menu for java files, and started wondering...
1) This is my command string for the jar file Open command:
"C:\Program Files\Java\jdk1.6.0_04\bin\java.exe" -jar %1
Is it possible to remove the absolute path and replace it with a relative one? In the command prompt, you can just call "java ..." because the PATH variable contains the a path to the java folder that has that exe, but this doesn't seem to work in the registry.
2) When you want to run java class files, you type the name of the file, minus the extension, so if you have HelloWorld.class,
java HelloWorld
The problem is, if I wanted to add an execute command to .class files, I'd have to find some way to drop the '.class' from the %1 argument (contains the path, name, and extension of the file you call the command on). Does anyone know how to do that?
Thanks,
-Jeff