java3D and jar..

I’m using com.sun.j3d.utils.timer.J3DTimer.class in my 2dplatform game… I’m trying to make a executable jar-file (for the first time…). I’m using JBuilder’s executable-jar-wizard…

When i execute the jar I get the following error:
Exception in thread “Thread-2” java.lang.unsatisfiedLinkError: no J3DUtils in java.library.path
at java.lang.ClassLoader.LoadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0… etc…

The J3DTimer class is inluded in the jar… manifesT:
Manifest-Version: 1.0
Main-Class: superspillet.SuperSpeletMain

What am I doing wrong ???

That means that your VM cannto find the J3DUtils.dll Or libJ3DUtils.so under Unix) native file that supports that timer.

You need to ether set java.library.path to point to a directory that cotnaisn that DLL, put it in your VMs appropriate jre/lib directory, or put it somewher else that your OS will know to loo kfor it (Win32 for instance has a stadnard system directory for such things)

Ahh, thank you =) I just installed java 1.5, and forgot to copy the j3d files…

Glad I could help :slight_smile: