Avatar billede fredand Forsker
09. august 2001 - 09:16 Der er 3 kommentarer og
2 løsninger

Problems with : no J3D in java.library.path

Hello!

I try to run my Java3D applet in appletviewer but I only get this problem:
java.lang.UnsatisfiedLinkError: no J3D in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
        at java.lang.Runtime.loadLibrary0(Runtime.java:749)
        at java.lang.System.loadLibrary(System.java:820)
        at javax.media.j3d.MasterControl$12.run(MasterControl.java:686)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:683)
        at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:206)
        at Test3dKeyNavApplet.<init>(Test3dKeyNavApplet.java:18)
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:237)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:579)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:515)
        at sun.applet.AppletPanel.run(AppletPanel.java:293)
        at java.lang.Thread.run(Thread.java:484)

I have realized that I have some problem with the: \"java.library.path\", but what is that, where is it located, and how do I change it and to what?

I run this on win 2000.

Hope some one can help me!!

Best regards

Fredrik

Ps The starnge thing is when I open the file in Explorer everything works fine!
Avatar billede disky Nybegynder
09. august 2001 - 10:14 #1
Have you installed J3d ?
Avatar billede fredand Forsker
09. august 2001 - 10:26 #2
Oh yes!

I can compile and run an applet from Explorer but not from a appletviewer.

Do you think I have miss something in the installation?
Avatar billede disky Nybegynder
09. august 2001 - 10:27 #3
is the jar file from j3d in your classpath ?

Avatar billede fredand Forsker
09. august 2001 - 11:04 #4
Yes my classpath looks like this:
.;C:\\PROGRA~1\\JMF21~1.1\\lib\\sound.jar;
C:\\PROGRA~1\\JMF21~1.1\\lib\\jmf.jar;D:\\JavaLabb;
C:\\Program Files\\orion\\applications\\develop\\htdocs\\WEB-INF\\classes;
C:\\Program Files\\orion\\applications\\protest\\htdocs\\WEB-INF\\classes;
G:\\aller-web\\web-inf\\classes\\;
C:\\Program Files\\orion\\orion.jar;
C:\\Program Files\\orion\\lib\\JSQLConnect.jar;
C:\\jdk1.3.1\\jre\\lib\\ext\\j3dutils.jar;C:\\jdk1.3.1\\jre\\lib\\ext\\j3dcore.jar;
C:\\jdk1.3.1\\jre\\lib\\ext\\vecmath.jar;
C:\\jdk1.3.1\\jre\\lib\\ext\\j3daudio.jar

And my path looks like this:
C:\\jdk1.3.1\\bin;
C:\\jdk1.3.1\\jre\\lib\\ext\\j3dutils.jar;
C:\\jdk1.3.1\\jre\\lib\\ext\\j3dcore.jar;
C:\\jdk1.3.1\\jre\\lib\\ext\\vecmath.jar;
C:\\jdk1.3.1\\jre\\lib\\ext\\j3daudio.jar
Avatar billede fredand Forsker
09. august 2001 - 12:48 #5
Hello!

I solved it!

I had to put the directory with j3d.dll in my Path!!

Thanks for all help
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester