Run time java jar file with jython exceptions -



Run time java jar file with jython exceptions -

i have big application worked perfect within eclipse, create executable jar file application, application utilize jython define resources. create `the next .bat file run file:

@ echo off java -xms64m -xmx512m -xincgc -dpython.home=jython-2.1 -dpython.path=jython-2.1/lib/alice -djava.library.path=lib/win32;externallib/win32; -jar myprog23.jar

when execute .bat file exception appeared, part of exception:

java.lang.exceptionininitializererror @ java.lang.class.forname0(native method) @ java.lang.class.forname(unknown source) @ edu.cmu.cs.stage3.alice.authoringtool.jalice.main(jalice.java:163) caused by: traceback (innermost last): file "c:\mywork\alicedev\alice test\resources\alice style.py", line 23, in ? file "c:\mywork\alicedev\alice test\resources\common\standardresources.py", li ne 181, in ? attributeerror: java bundle 'javax' has no attribute 'vecmath' @ org.python.core.py.attributeerror(py.java) @ org.python.core.pyobject.__getattr__(pyobject.java) @ org.python.pycode._pyx1.f$0(c:\mywork\alicedev\alice test\resources\c ommon\standardresources.py:181) @ org.python.pycode._pyx1.call_function(c:\mywork\alicedev\alice test\r esources\common\standardresources.py) @ org.python.core.pytablecode.call(pytablecode.java) @ org.python.core.pycode.call(pycode.java) @ org.python.core.py.runcode(py.java) @ org.python.core.__builtin__.execfile_flags(__builtin__.java) @ org.python.core.__builtin__.execfile(__builtin__.java) @ org.python.core.__builtin__.execfile(__builtin__.java) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ org.python.core.pyreflectedfunction.__call__(pyreflectedfunction.java ) @ org.python.core.pyreflectedfunction.__call__(pyreflectedfunction.java ) @ org.python.core.pyobject.__call__(pyobject.java) @ org.python.pycode._pyx0.f$0(c:\mywork\alicedev\alice test\resources\a lice style.py:23) @ org.python.pycode._pyx0.call_function(c:\mywork\alicedev\alice test\r esources\alice style.py) @ org.python.core.pytablecode.call(pytablecode.java) @ org.python.core.pycode.call(pycode.java) @ org.python.core.py.runcode(py.java) @ org.python.core.__builtin__.execfile_flags(__builtin__.java) @ org.python.core.__builtin__.execfile(__builtin__.java) @ edu.cmu.cs.stage3.alice.authoringtool.authoringtoolresources.loadreso urcespy(authoringtoolresources.java:199) @ edu.cmu.cs.stage3.alice.authoringtool.authoringtoolresources.<clinit> (authoringtoolresources.java:108) ... 3 more

the vecmath.jar file , other external lib founded within folder called externallib in same folder of myprog23.jar , .bat files

how solve problem , need set?

you need add together jars used in programme classpath. so, in case jars nowadays in externallib directory should added in classpath.

for adding jars in classpath may refer setting multiple jars in java classpath

batch-file jython executable-jar attributeerror vecmath

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -