Login  Register

Re: J3D+JOGL good within Eclipse but UnsatisfiedLinkError as standalone

Posted by philjord on Jun 03, 2016; 7:05am
URL: https://forum.jogamp.org/J3D-JOGL-good-within-Eclipse-but-UnsatisfiedLinkError-as-standalone-tp4036783p4036785.html

Larry,
This looks like a fairly common problem (I hope).

The dll you are loading J3D.dll is from the older versions of Java3D before Jogamp took it over.

Also the line in MasterControl
 at javax.media.j3d.MasterControl$22.run(MasterControl.java:889)
Definately doesn't match Java3D 1.6.2 code.

Often this is caused because your installation of Java has the java3D jar files installed into the extension folder (very common on MacOS) and those jar files are loaded before anything on your class path.

So the first step would be to open the jre/ext folder and see what's in there, probably this folder
 C:\Users\tesllar\Desktop\BigOldVendor\BigOldApp\Development\Installer Development\NSIS\BigOldApp\jre\lib\ext\

If there is any Java3D jar files in there then that's the issue.

The easiest thing to do is then delete the java3d jars (including vecmath.jar) from that folder and re-test.

However this is often not a solution if you are deploying to machines with a pre-installed JRE.
If you are unable to change the users ext folder you will need to either:
A/ change to Java3D 1.7 where all package names have been altered to not match the legacy names.
B/ use something like -Djava.ext.dirs=.\none\ in your start up properties. Though this this you can't access any jar in the ext folder and so you'd need to find what you use (if anything) and move it into your project (a good idea anyway).

So take a look and see if this is the issue.

Thanks,
Phil.