• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applets for different JDK's

 
Morgan Roth
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are having a problem being able to run applets from different vendors (e.g. Oracle) which require different versions of the SDK (in the case of Oracle their own) or 1.1.x vs 1.2. JDK's Is there any way to configure so that each applet gets its appropriate JVM. This must be a common problem because of the issues with applets & IE. Thanks for any suggestions
Morgan
 
Yatharth Kumar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try using Object tag in your html that includes the applet. Syntax is as follows:
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="200" height="200" align="baseline"
codebase="http://java.sun.com/products/plugin/1.4/jinstall-14-win32.cab#Version=1,4,0,mn">
<PARAM NAME="code" VALUE="XYZApp.class">
<PARAM NAME="codebase" VALUE="html/">
<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.4">
<PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz">
<PARAM NAME="scriptable" VALUE="true">
No Java 2 SDK, Standard Edition v 1.4 support for APPLET!!
</OBJECT>
In the OBJECT tag, the codebase attribute represents the location from which to download Java Plug-in when it is not found on the local machine. This way you can specify which plugin is required for an applet to run in IE.
Hope this helps.
 
Morgan Roth
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the suggestion but our environment is more controlled, it's an intranet. If I allowed that download it would, as a side effect, make it impossible for my other applet to run (which does not appear to be upward compatible to the Java 2 plugin). I can require any setup necessary but all applets must run with the appropriate JVM. ( 1.x, Java 2, Oracle whatever)
M.
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I understand it, the first-generation Java Plug-in implementation didn't have a good way to handle selection of a specific JDK version, but later generations do. I recommend you check the developer docs for the Java Plug-in at Java.sun.com.
You can manually control which JDK is being used via the Java Control Panel in Windows (it's under Start/Settings/Control Panel). It's been a while since I looked, but I think(?) you can map applets to JDKs there.
I know times are tight, but I really do recommend that anything that's dependent on older JDK's be researched and repaired. These things have a nasty habit of failing at the most inconvenient times.
Whoever said "If it ain't broke don't fix it" probably wasn't driving with worn tires on the expressway!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic