Login  Register

Re: Java 3D initialization is super slow

Posted by gouessej on Nov 03, 2016; 9:30am
URL: https://forum.jogamp.org/Java-3D-initialization-is-super-slow-tp4037070p4037376.html

Hi

If you don't want to set the Java library path (which can't be done in the manifest of a JAR as far as I know), you must respect a particular layout for the native libraries. I think that Xerxes had to do something similar to you several months or years ago. You can put them into the fat JAR or outside. If you disable the automated native library loading, it's up to you to extract the native libraries from the JARs, you might have to modify the Java library path programmatically or to set it in command line. If you extract them at the right place, they'll be found and loaded as expected.

You can create a platform dependent installer that puts the native libraries into the Java library path and set it in the launch script.

I'll have to solve a similar problem for my game as I don't want to rely on extracted resources at runtime.
Julien Gouesse | Personal blog | Website