intellij idea - Properly create Java JAR -


i using intellij create variant of java worldwind application. when build jar artifact in intellij can see dlls , sos in top-level directory of jar. however, when try execute it, complains can't see these libraries inside jar (tried both windows , linux, being why include sos , dlls).

what need see these libraries?

this first time creating executable jar, sorry vagueness, i'm not quite sure information important. please ask me questions necessary better understand problem, , answer them.


edit:

catched filenotfoundexception: d:\code\animator\animator\out\artifacts\animator_jar\animator-natives-windows-i586.jar (the system cannot find file specified),  while addnativejarlibsimpl(     classfromjavajar class com.jogamp.common.os.platform,      classjaruri jar:file:/d:/code/animator/animator/out/artifacts/animator_jar/animator.jar!/com/jogamp/common/os/platform.class,      nativejarbasename animator-natives-windows-i586.jar):      [ file:/d:/code/animator/animator/out/artifacts/animator_jar/animator.jar ->        file:/d:/code/animator/animator/out/artifacts/animator_jar/ ] +      animator-natives-windows-i586.jar ->      slim: jar:file:/d:/code/animator/animator/out/artifacts/animator_jar/animator-natives-windows-i586.jar!/  exception in thread "main" java.lang.unsatisfiedlinkerror: can't load library: d:\code\animator\animator\out\artifacts\animator_jar\gluegen-rt.dll     @ java.lang.classloader.loadlibrary(unknown source)     @ java.lang.runtime.load0(unknown source)     @ java.lang.system.load(unknown source)     @ com.jogamp.common.jvm.jnilibloaderbase.loadlibraryinternal(jnilibloaderbase.java:551)     @ com.jogamp.common.jvm.jnilibloaderbase.access$000(jnilibloaderbase.java:64)     @ com.jogamp.common.jvm.jnilibloaderbase$defaultaction.loadlibrary(jnilibloaderbase.java:96)     @ com.jogamp.common.jvm.jnilibloaderbase.loadlibrary(jnilibloaderbase.java:414)     @ com.jogamp.common.os.dynamiclibrarybundle$gluejnilibloader.loadlibrary(dynamiclibrarybundle.java:388)     @ com.jogamp.common.os.platform$1.run(platform.java:209)     @ java.security.accesscontroller.doprivileged(native method)     @ com.jogamp.common.os.platform.<clinit>(platform.java:179)     @ javax.media.opengl.glprofile.<clinit>(glprofile.java:82)     @ au.gov.ga.worldwind.animator.application.animatorconfiguration.<clinit>(animatorconfiguration.java:46)     @ au.gov.ga.worldwind.animator.application.animator.<clinit>(animator.java:205) 

as far structure of jar, don't know how show other screenshot of jar in 7-zip:

jar contents

in image can see name of jar is: animator.jar, intellij searching for: animator-natives-windows-i586.jar. must go module settings - artifacts , change outputdirectory to: d:\code\animator\animator\out\artifacts\animator_jar check name of artifact match path , name of file. enter image description here

the image added me example.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -