Skip to main content

Java3d with java6 Update21 is not working?

5 replies [Last post]
sikriyogesh
Offline
Joined: 2010-01-18

Hello Friends
I am in a critical situation.I created a jar applet file by using jdk6 update20.When I run on browser,I used latest java 3d libraries from sun site. So,Now when I update java to update 21 then mine applet is not loading and most probably java3d libraries are also not loading.
I am assuming it is bcoz of mismatch of version that I used for compile.

Or is there any other solution so that when ever I update java mine jar applet should work in all cases without recompiling with new version of java?

Thanks & Regards
Yogesh

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tmilard
Offline
Joined: 2004-03-25

Re : Actually,I am also loading java3d Libraries too and it get stuck at main class not found.Is this something related to java3d libraries?
Any Ideas?

--->> Hello sikriyogesh ,
I am no expert but I muss say my Applets (using java3d API) have succeded started after jre 6u21 was installed.... [even though it failed at first ... but after a reload of my machine ... went OK ever since].

The only difference in my JNLP is that I DO NOT call the java3D jars FROM java.sun but on my machine (for startup performance reasons).

Here are the links of my applets. Once again they work on my 3 machines :

http://www.free-visit.net/index.php/23-modules-positions.html
http://www.free-visit.net/index.php?option=com_content&view=article&cati...
http://www.free-visit.net/index.php?option=com_content&view=article&id=5...

Hope it helps a bit.
Thierry

PS : I can understand your frustration with your failing Applet. Personnaly I have spent (lost) so much time with these jnlp and Applets files.... sometimes I can avoid that this quite-ugly-engeneer job is just a sabotage work for the java platform.

aces
Offline
Joined: 2003-07-17

I guess you problem is not related to compilation problems.
Check it in clean machine, using JRE 6 update 21.

Java, at bytecode level, only changes on major releases. And all JVM are bytecode backwards compatible.
I used to set byte code level as Java 5, by setting -target 1.5.
By default JDK 6.0 compiles for Java 6.

http://download.oracle.com/javase/6/docs/technotes/tools/windows/javac.html

[code]
-target version
Generate class files that will work on VMs with the specified version. The default is to generate class files to be compatible with the JDK 5 VM. When the -source 1.4 or lower option is used, the default target is 1.4. The versions supported by javac are:
1.1 Generate class files that will run on VMs in JDK 1.1 and later.
1.2 Generate class files that will run on VMs in JDK 1.2 and later, but will not run on 1.1 VMs.
1.3 Generate class files that will run on VMs in JDK 1.3 and later, but will not run on 1.1 or 1.2 VMs.
1.4 Generate class files that will run on VMs in JDK 1.4 and later, but will not run on 1.1, 1.2 or 1.3 VMs.
1.5 Generate class files that are compatible only with JDK 5 VMs.
5 Synonym for 1.5
[/code]

sikriyogesh
Offline
Joined: 2010-01-18

Hello Aces
Thanks for your reply.I tried on clean machine with java 6 update 21 and its not loading.Actually,I am also loading java3d Libraries too and it get stuck at main class not found.

I am loading java3d library like this :

http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dcor...,
http://download.java.net/media/java3d/webstart/release/j3d/latest/j3duti...,
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-curr...,
http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
http://download.java.net/media/java3d/webstart/release/vecmath/latest/ve... />

Is this something related to java3d libraries? bcoz it download the java3d library in lib/ext folder of jre. but when I tried in clean machine wherever is only one jre update21 then also its not loading.

And suppose If I ahve two jre like one with jdk and another that i downloaded from browser then also can we specify to use one jre so that noc onfusion occurs and it loads my applet smoothly.

Any Ideas?
Thanks Once Again.
Regards
Yogesh

Message was edited by: sikriyogesh

aces
Offline
Joined: 2003-07-17

Yogesh

try my JNLP example for applets :

http://cafebrasilti.kinghost.net/WebSite/

I tested it with Jre 6u21 and works just fine.

sikriyogesh
Offline
Joined: 2010-01-18

Thanks Timilard and Aces for your valuable replies.

Aces-I tried your way by using .jnlp file and Its working on upate 21 enviorenment too.
But now the prob is how can I check the java is already installed or not so that only I can show Launch button .
And one more thing On every install jnlp launches desktop version of viewer inspite of showing it in browser for the first time.

Is there any way to detect java is installed or not by using this javaDploy.js for IE and Firefox browser?
Any Ideas?

Thanks Again.
Regards
Yogesh

Message was edited by: sikriyogesh