SET JAVAHOME=J:\Program Files\java\jdk1.7.0_04Then refer to %JAVA_HOME%\bin\java.exe and %JAVA_HOME%\bin\javac.exe in all your *.bat files.
Capture and restore the state of the registry and the C:\WINNT\system32 files. The idea is you capture the state of a JVM just after it is installed. You can the get back there, no matter what strange stuff has happened to the files or the registry. Once you have captured various configurations, you can restore whichever one you want. This is good protection even if you don’t plan to switch JVMs on the fly.
The key is, to run a version of the JVM, the registry must be set up to point to it, and its java.exe, javaw.exe and javaws.exe must be in the C:\winnt\system32 directory as the first version encountered on the path. They can then use the registry to find the other related files.
java.exe -versionUse javac.exe -version to verify you have the version of the compiler you thought you did. javaw.exe and javaws.exe don’t have a -version option, but once you get java.exe working the others are usually correct to. Unfortunately, older JDK Javac.exe does not support -version. I asked Sun to add support for it, and they did.
I have found Opera will use the latest JVM installed, then later flip to track to the Java console when you turn off support for IE (Internet Explorer) and Mozilla and then turn it back on again.
In Internet Explorer, you enable Java with: Tools ⇒ Internet Options ⇒ Advanced ⇒ Java Sun ⇒ Use Java (pick JRE).
|
|
You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) |
| http://mindprod.com/jgloss/flipping.html | J:\mindprod\jgloss\flipping.html | |
![]() | Please email your feedback for publication,
letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording,
broken/redirected link reports, suggestions to improve this page or comments to
Roedy Green :
| |
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.179.212] | |
| Feedback | You are visitor number 27,302. | |