Login  Register

Re: Java3d V1.7.1, ClassNotFoundException outside of Eclipse IDE

Posted by lermontov on Dec 10, 2021; 7:12pm
URL: https://forum.jogamp.org/Java3d-V1-7-1-ClassNotFoundException-outside-of-Eclipse-IDE-tp4041530p4041533.html

Yes, I read you tutorial, 10 times, could be
and the whole JOGAMP site;
(is using of jogamp-fat-all.jar an up-to-date practice or discouraged?)

But now, the Eclipse project uses PDE, (Plugin Development Environment) with OSGI Equinox to build a plugin (jar file);
There is a MANIFEST.MF file and in this file following content

Bundle-ClassPath: .,
 lib/Java3d_171/j3dcore.jar,
 lib/Java3d_171/j3dutils.jar,
 lib/Java3d_171/vecmath.jar,
 lib/jogamp/gluegen-rt.jar,
 lib/jogamp/jogl-all.jar
Bundle-NativeCode: 
 lib/jogamp/windows-i586/gluegen-rt.dll;
 lib/jogamp/windows-i586/nativewindow_awt.dll;
 lib/jogamp/windows-i586/nativewindow_win32.dll;
 lib/jogamp/windows-i586/jogl_cg.dll;
 lib/jogamp/windows-i586/jogl_desktop.dll

this MANIFEST file is in the created plugin available too.

With Bundle-ClassPath is the classpath defined and with Bundle-Nativcode is the destinnation for nativ .dll defined;
With this settings I can perform the functionality started in eclipse, works fine;
 -> the build path (for compilation) is correct, no errors
 -> the runtime execution (classpath) is correct too

I do not use gluegen-rt-natives-windows-i586.jar and jogl-all-natives-windows-i586.jar
I do not use the sources ZIP files, also no references to it
And no references to natives libraries e.g. gluegen-rt.jar has no reference to native source location

Maybe the problem is not in Java3d at all but in Eclipse or in the OSGI or I dont know.
I'm looking for an alternative posibility to build my plugin, with Command Line, Ant or MAVEN.