I wanted to run java programs on a 64 bit Windows 7 computer and I have a 64 bit Java VM. How do I launch the jar files via command line ? It seems that 64 bit Windows 7 have a seperation between 32 bits and 64 bits programs.
migrated from stackoverflow.com Sep 4 '11 at 12:24
|
Some Jar's I've had to lunch using the java.exe that is in the SysWOW64 folder.
|
|||
|
|
|
Try giving the explicit path for each JRE you have installed:
Make sure you have a 64 bit JRE and a 32 bit JRE. Most java software provided still needs a 32 bit JRE (as it uses JNI or other non-portable stuff). |
|||||||||||
|
|
Some jar files have information in them allowing to be executed with the Basically, if you install Java (the easiest is through http://java.com) then you can use that to run Java programs. It takes care of the correct version. But it is not a problem to run a 32-bit JVM on a 64-bit system - the primary limitation is that your application is limited to a few gigabytes of memory. So, if you can run |
|||
|
|
|
I commented, but since somebody else agrees I'll post it as an answer instead:
Take care to note what mbx said too:
|
|||
|
|
java -jar file.jarIn case you have more than one JRE try giving the explicit path (C:\Programs\..., "C:\Programs (x86)\...") – mbx Sep 4 '11 at 9:04java -jar /path/to/jar/jarFile.jarwork? – James Webster Sep 4 '11 at 9:04