java - Runnable JAR file doesn't run after export in Eclipse -
i have following hierarchy :

when export project runnable jar file (32 bit platform) , file created , when try run , nothing happens - no response os (windows 7 pro) .
why can't run jar file ?
thanks
edit:
c:\1>java -jar ex3.jar catched filenotfoundexception: c:\1\ex3-natives-windows-i586.jar (the system can not find file specified), while tempjarcache.bootstrapnativelib() of jar:fil e:/c:/1/ex3-natives-windows-i586.jar!/ (file:/c:/1/ + ex3-natives-windows-i586.j ar) exception in thread "awt-eventqueue-0" java.lang.unsatisfiedlinkerror: no gluege n-rt in java.library.path @ java.lang.classloader.loadlibrary(unknown source) @ java.lang.runtime.loadlibrary0(unknown source) @ java.lang.system.loadlibrary(unknown source) @ com.jogamp.common.jvm.jnilibloaderbase.loadlibraryinternal(jnilibload erbase.java:442) @ com.jogamp.common.jvm.jnilibloaderbase.access$000(jnilibloaderbase.ja va:59) @ com.jogamp.common.jvm.jnilibloaderbase$defaultaction.loadlibrary(jnil ibloaderbase.java:90) @ com.jogamp.common.jvm.jnilibloaderbase.loadlibrary(jnilibloaderbase.j ava:328) @ com.jogamp.common.os.dynamiclibrarybundle$gluejnilibloader.loadlibrar y(dynamiclibrarybundle.java:390) @ com.jogamp.common.os.platform.loadgluegenrtimpl(platform.java:251) @ com.jogamp.common.os.platform.access$000(platform.java:57) @ com.jogamp.common.os.platform$1.run(platform.java:186) @ com.jogamp.common.os.platform$1.run(platform.java:183) @ java.security.accesscontroller.doprivileged(native method) @ com.jogamp.common.os.platform.<clinit>(platform.java:183) @ javax.media.opengl.glprofile.<clinit>(glprofile.java:82) @ javax.media.opengl.awt.glcanvas.<init>(glcanvas.java:246) @ javax.media.opengl.awt.glcanvas.<init>(glcanvas.java:196) @ javax.media.opengl.awt.glcanvas.<init>(glcanvas.java:186) @ worldcontroller.<init>(worldcontroller.java:119) @ worldcontroller$1.run(worldcontroller.java:478) @ java.awt.event.invocationevent.dispatch(unknown source) @ java.awt.eventqueue.dispatcheventimpl(unknown source) @ java.awt.eventqueue.access$200(unknown source) @ java.awt.eventqueue$3.run(unknown source) @ java.awt.eventqueue$3.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.security.protectiondomain$1.dointersectionprivilege(unknown sour ce) @ java.awt.eventqueue.dispatchevent(unknown source) @ java.awt.eventdispatchthread.pumponeeventforfilters(unknown source) @ java.awt.eventdispatchthread.pumpeventsforfilter(unknown source) @ java.awt.eventdispatchthread.pumpeventsforhierarchy(unknown source) @ java.awt.eventdispatchthread.pumpevents(unknown source) @ java.awt.eventdispatchthread.pumpevents(unknown source) @ java.awt.eventdispatchthread.run(unknown source) c:\1> updated :
c:\> c:\>java -jar ex3.jar exception in thread "main" java.lang.illegalaccessexception: class org.eclipse.j dt.internal.jarinjarloader.jarrsrcloader can not access member of class worldc ontroller modifiers "public static" @ sun.reflect.reflection.ensurememberaccess(unknown source) @ java.lang.reflect.accessibleobject.slowcheckmemberaccess(unknown sour ce) @ java.lang.reflect.accessibleobject.checkaccess(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ org.eclipse.jdt.internal.jarinjarloader.jarrsrcloader.main(jarrsrcloa der.java:58) c:\>
it seems got illegal call. means try call method wich you're not allowed call. (referenced updated edit)
your error says want execute method modifiers public static. static method must calls class name not object:
someclass.staticmethodcall(); the following wrong:
someclass sc = new someclass(); sc.staticmethodcall();
Comments
Post a Comment