Forum Stats

  • 3,874,198 Users
  • 2,266,682 Discussions
  • 7,911,767 Comments

Discussions

issues with applet and jnlp versions

hi to all... I want to ensure that my app customers use the latest java version. We are using glassfish 2.1.1 with the 1.6u21 and the same version to compile some apps including an applet and some swing apps downloaded through jnlp
Locally, I downloaded the java 1.6.0u37, change the JAVA_HOME and PATH variables, and also change the jdk version in netbeans... now I'm compiling my codes with it without problem..

the thing is that I wanted to ensure this version in the the jnlp and the applet. In the applet, we haved

<applet code="com/web/applet/ValidateXml"
archive="../../applet/xalan.jar, ../../applet/ValidateXml.jar, ../../applet/UtilXml.jar"
height="350" width="700" >
</applet>

after reading this
http://www.ailis.de/~k/archives/63-How-to-use-Java-applets-in-modern-browsers.html

I change it to

<object id="testapplet-object"
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="256" height="256"
codebase="http://java.sun.com/update/1.6.0/jinstall-6u37-windows-i586.cab#Version=1,6,0,37">
<param name="archive" value="../../applet/xalan.jar, ../../applet/ValidateXml.jar, ../../applet/UtilXml.jar" />
<param name="code" value="com.web.applet.ValidateXml" />
<embed id="testapplet-embed"
type="application/x-java-applet;jpi-version=1.6.0_37"
width="256" height="256"
archive="../../applet/xalan.jar, ../../applet/ValidateXml.jar, ../../applet/UtilXml.jar"
code="com.web.applet.ValidateXml"
pluginspage="http://javadl.sun.com/webapps/download/GetFile/1.6.0_37-b06/windows-i586/xpiinstall.exe" >
</embed>
</object>

this seem to work in Internet Explorer but I don't see the applet after it 'opens'. In firefox, the browser doesn't find the correct plugin and manually I can download the xpi installer.. but then, it tells me that the version is just installed in my machine
When I change back to the <applet> , I see the applet without problems but how can I set the minimum version with <applet>?


At the jnlp file, I change the j2se version to this:

<j2se version="1.6.0_37" href="http://www.oracle.com/technetwork/java/javase/downloads/jre6u37-downloads-1859589.html"/>

After I download the jnlp app, appears a java 7 :S It works fine but why java 7? I don't have it installed. Am I ok with the jnlp change?

greetings
This discussion has been closed.