Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (499)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Deloying the J3D extensions  (Read 2285 times)
0 Members and 1 Guest are viewing this topic.
Offline Izanagi

Senior Newbie





« Posted 2007-06-28 23:56:24 »

I'm tryng to use Java 3D in an applet.and have it load w/o users needing a manual install. I Referenced: http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/extensions.html
I guess I don't understand how to do it.

I tried using a manifest file in my programs unsigned JAR, but it says it can't find my jar.
My error message:
Quote
network: Cache entry not found [url: http://<myurl>/3dtest/Seat2/jar.class, version: null]
network: Connecting http://<myurl>/3dtest/Seat2/jar.class with proxy=DIRECT
network: Connecting http://<myurl>/3dtest/Seat2/jar.class with cookie "lang=english"
network: Cache entry not found [url: http://<myurl>/3dtest/Seat2/jar.class, version: null]
network: Connecting http://<myurl>/3dtest/Seat2/jar.class with proxy=DIRECT
network: Connecting http://<myurl>/3dtest/Seat2/jar.class with cookie "lang=english"
load: class Seat2.jar not found.
java.lang.ClassNotFoundException: Seat2.jar
   at sun.applet.AppletClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.applet.AppletClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.applet.AppletClassLoader.loadCode(Unknown Source)
   at sun.applet.AppletPanel.createApplet(Unknown Source)
   at sun.plugin.AppletViewer.createApplet(Unknown Source)
   at sun.applet.AppletPanel.runLoader(Unknown Source)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
   at sun.applet.AppletClassLoader.getBytes(Unknown Source)
   at sun.applet.AppletClassLoader.access$100(Unknown Source)
   at sun.applet.AppletClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   ... 10 more
basic: Exception: java.lang.ClassNotFoundException: Seat2.jar
java.lang.ClassNotFoundException: Seat2.jar
   at sun.applet.AppletClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.applet.AppletClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.applet.AppletClassLoader.loadCode(Unknown Source)
   at sun.applet.AppletPanel.createApplet(Unknown Source)
   at sun.plugin.AppletViewer.createApplet(Unknown Source)
   at sun.applet.AppletPanel.runLoader(Unknown Source)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
   at sun.applet.AppletClassLoader.getBytes(Unknown Source)
   at sun.applet.AppletClassLoader.access$100(Unknown Source)
   at sun.applet.AppletClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   ... 10 more

My manifest file:
Quote
Manifest-Version: 1.0
Extension-List: j3dcore
j3dcore-Extension-Name: javax.media.j3d
j3dcore-Implementation-Vendor-Id: com.sun
j3dcore-Implementation-Version: 1.5.0
j3dcore-Implementation-Title: Java 3D Core Runtime Environment
j3dcore-Specification-Title: Java 3D API Specification
j3dcore-Specification-Version: 1.5
j3dcore-Specification-Vendor: Sun Microsystems, Inc.
j3dcore-Implementation-URL: http://<myurl>/3dtest/loader_signed.jar
I tried j3dcore.jar instead of loader_signed.jar, but it still can't find my Jar

loader_signed.jar is from this PDF and site and contains all the j3d jars and dlls plus a loader.class
http://atlas.dsv.su.se/~pierre/a/papers/nativelibs.pdf
http://www.tranexp.com:2000/InterTran?type=url&url=http%3A%2F%2Fpeople.dsv.su.se%2F%7Epierre%2Fos%2Fnativelibs%2F&text=&from=swe&to=eng (Swedish translation)

my html file is basic
Quote
<APPLET
   code   = "Seat2.jar"    width   = "670"   height   = "500"   >
</APPLET>

Any ideas or easier ways?

I found this but it says experimental: https://java3d.dev.java.net/applet-launcher.html

Also, do all 3 J3D JARs work in Apples OSs too?
Offline broumbroum

Junior Member





« Reply #1 - Posted 2007-06-29 00:48:24 »

I would simply include the libjar in the main jar file without changing the manifest. Of course URL is no more needed. Roll Eyes

::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @ http://b23prodtm.webhop.info
on sf.net: /projects/sf3jswing
Java (1.6u10 plz) Web Start pool
dev' VODcast[/ur
Offline Izanagi

Senior Newbie





« Reply #2 - Posted 2007-06-29 01:39:46 »

I would simply include the libjar in the main jar file without changing the manifest. Of course URL is no more needed. Roll Eyes

So, you mean:
jar cvf myapp.jar mymain.class loader_signed.jar

Thats 3 nested JARs. That makes an bare manifest file right?

and *-Implementation-URL can be dropped in a general manifest?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline broumbroum

Junior Member





« Reply #3 - Posted 2007-06-29 15:53:01 »

That be the solution. Note that for a JAI extension it does require a complete Manifest file grouping the ones from JAI extensions otherwise you get a classNotFound exception something caused by a vendor==null condition. Cry

::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @ http://b23prodtm.webhop.info
on sf.net: /projects/sf3jswing
Java (1.6u10 plz) Web Start pool
dev' VODcast[/ur
Offline Izanagi

Senior Newbie





« Reply #4 - Posted 2007-06-29 19:24:19 »

 Still didn't work. Keep getting can't find Seat2.jar.

Why is it looking for "Seat2/jar.class"Huh

1  
2  
network: Connecting http://<myurl>/3dtest/Seat2/jar.class with proxy=DIRECT
network: Connecting http://<myurl>/3dtest/Seat2/jar.class with cookie "lang=english"
Offline broumbroum

Junior Member





« Reply #5 - Posted 2007-06-30 01:44:56 »

you may check for your pathnames. I see a slash '/'...

::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @ http://b23prodtm.webhop.info
on sf.net: /projects/sf3jswing
Java (1.6u10 plz) Web Start pool
dev' VODcast[/ur
Offline InteractiveMesh

Senior Newbie





« Reply #6 - Posted 2007-06-30 11:06:00 »

"The JNLPAppletLauncher is a general-purpose, JNLP-based applet-launcher class for deploying applets that use extension libraries, such as Java 3D, JOGL, and JOAL, containing native code."

Have a look at Java 3D forum: http://forums.java.net/jive/thread.jspa?threadID=27661&tstart=30

August
Offline Izanagi

Senior Newbie





« Reply #7 - Posted 2007-07-03 21:51:33 »

I am testing the JNLPAppletLauncher and I keep getting this error on my test machine:

"Fail to create reference rasterizer 3d device - d3derr_notavailable"

Old P2 Dell
128MB RAM
NVidia Riva TNT2 32MB graphics
NV4 V5.0 drivers

Any idea what is wrong?
Offline InteractiveMesh

Senior Newbie





« Reply #8 - Posted 2007-07-04 12:49:11 »

According to Java 3D 1.5.1 release notes for Windows the (default) OpenGL renderer requires OpenGL 1.3 (or later) and the (optional) DirectX renderer requires DirectX 9.0 (or later): https://j3d-core.dev.java.net/j3d1_5_1/RELEASE-NOTES.html.

If your system fulfills all requirements please file your error message to the Java 3D forum thread (the Java 3D Team will be back mid July).

August
Offline InteractiveMesh

Senior Newbie





« Reply #9 - Posted 2007-07-31 09:55:08 »

Java 3D JNLPAppletLauncher with Java 3D 1.5.1 is now available. 

Web page with examples and code samples: https://java3d.dev.java.net/applets/.
Applet-launcher project home page: https://applet-launcher.dev.java.net/.

August 
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (30 views)
2014-04-15 18:08:23

BurntPizza (27 views)
2014-04-15 03:46:01

UprightPath (42 views)
2014-04-14 17:39:50

UprightPath (24 views)
2014-04-14 17:35:47

Porlus (41 views)
2014-04-14 15:48:38

tom_mai78101 (63 views)
2014-04-10 04:04:31

BurntPizza (123 views)
2014-04-08 23:06:04

tom_mai78101 (222 views)
2014-04-05 13:34:39

trollwarrior1 (189 views)
2014-04-04 12:06:45

CJLetsGame (198 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!