How can I test Java applet with different Java versions in Firefox?
applet, firefox, java
Solution
Finally, I managed to do this.
Steps to make your computer use another JRE/JDK:
- Open `regedit`.
- Open `HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=XXX` subtree.
- Change `Path` value to the place, where your plugin dll is. E.g.: `c:\java\jdk1.6.0_37\jre\bin\plugin2\npjp2.dll`.
- Change `Version` value E.g.: `1.6.0_37`.
- Make sure, that you have correct Java in `%PATH%` environment variable.
- In the Control Panel -> Java -> View disable all javas that you will not use. Select only the one you need.
- Have fun!
Problem
How can I test Java Applet application in the Firefox with different Java Plugins versions? For instance, with Java 6 and Java 7? Is there a way to guide Firefox to the correct java.plugin.dll? Haven't found any Firefox command-line options with regard to NPAPI so far.