Skip to main content

How to deploy 3D applet var JNLP so clients don't need 3D package installed

3 replies [Last post]
neil1988
Offline
Joined: 2010-09-13

Hi,

I'm now developing a Java3D applet launched var JNLP, but during the test, it cannnot work if the client's computer doesn't have Java3D installed previously.

This is a big problem if we have to force all the users to download and install Java 3D before launch our applet.

I know the offical guide which is the FourByFour Demo. Its code is in the following:

But this just doesn't work in many computers!

So we have to use applets with JNLP instead. And this works fine in all the computers across many platforms during the test. The code I use now is:

The HTML page:

var attributes = {
code: "MyApplet",
archive: "V2.jar",
width: 700,
height: 500
};
var parameters = {jnlp_href:"launchV2.jnlp"};
var version = "1.5";
deployJava.runApplet(attributes, parameters, version);

The JNLP code:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

V2
Neil

V2
V2

I believe there should be a way for applets with JNLP running in clients computer without Java3D previously installed. JNLPAppletLauncher can do this, why cannot we?

Looking forward to your help. Thanks a million.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
aces
Offline
Joined: 2003-07-17

Also see my draggable Applet example :

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

interactivemesh
Offline
Joined: 2006-06-07

Neil1988,

the [b]Java 3D extension[/b] is missing in your resources-element:

[code]




[/code]
See again the sample here http://forums.java.net/jive/thread.jspa?threadID=152236&tstart=30

For more details see [b]Java 3D Web Start Release[/b] https://j3d-webstart.dev.java.net/release/index.html

August

neil1988
Offline
Joined: 2010-09-13

Hi August,

Thanks very much for your reply. Sorry for late response as we just tested it. This works perfect now. The clients' computers will now automatically download both JRE and JAVA 3D before launching our applet.

;-)

Thanks also goes to aces for your example.