java - How to distribute Java3d jar files with netbeans dist? -
i have java project on netbeans (mac os x) uses java3d
. on mac version of java distribution, java3d included. want distribute application jar
other platforms. when clean , build
project in netbeans generates dist
folder follow:
. ├── lib │ ├── absolutelayout.jar │ ├── jgrapht-jdk1.6.jar │ └── swing-layout-1.0.4.jar ├── readme.txt └── myapp.jar
but can see has not included jar file related java3d. how can force netbeans include necessary jar files distribution folder?
update:
on second try, downloaded java3d oracle website , extracted until found 3 java3d related jars. adding them project causes error in ubuntu when try run java -jar myapp.jar
:
java.lang.unsatisfiedlinkerror: no j3dcore-ogl in java.library.path
this software targeted several platforms , want users able run executing jar file without getting involved in technical issues. how should that?
looks there native libraries involved here. won't easy; maybe impossible.
netbeans won't users.
perhaps can script setup commands create appropriate environment variables, call executable jar.
you'll have create different versions of script *nix , windows.
you'll need package in zip file arranges artifacts needed or write installer help.
Comments
Post a Comment