Login  Register

Re: jinput finds no controllers ... only in production version?

Posted by gouessej on May 18, 2020; 11:49am
URL: https://forum.jogamp.org/jinput-finds-no-controllers-only-in-production-version-tp4040631p4040642.html

No you can't modify the Java library path (not the classpath) in the manifest file. You must use "-Djava.library.path", the path is OS specific.

The Java library path can be set at runtime programmatically but it's a hack, it might break:
http://web.archive.org/web/20160214203937/http://blog.cedarsoft.com/2010/11/setting-java-library-path-programmatically/

I use maven-nativedependencies-plugin but I don't know whether it still works.

By the way, if you use a single "executable" JAR without a real launcher, please keep in mind that it has numerous limitations as I explained here:
https://gouessej.wordpress.com/2014/11/22/ardor3d-est-mort-vive-jogamps-ardor3d-continuation-ardor3d-is-dead-long-life-to-jogamps-ardor3d-continuation/#executablejar
Julien Gouesse | Personal blog | Website