|
From: Geoff G. <ge...@ge...> - 2004-02-29 22:35:48
|
Quoting na...@mi... (na...@mi...): > I have an issue with running a Java program that contains a few Jython classes > directly from a jar. > > The Jython module mathlangcore.py is used by the Jython class Ast.py > which is used by the Java part of the program. > > I have packaged all the program and its dependencies in a jar file. > When I execute this jar file with java -jar, I get an error, it > seems a NullPointerException, when the mathlangcore.py is supposed > to be used. I have put all my Java .class files into the jarfile created with jythonc -a view.py. The build process goes something like this (though I have Ant doing it all for me): javac -d build src/*.java jythonc -a -j myjarfile.jar view.py jar uf myjarfile.jar build/*.class Then I run 'java -cp myjarfile.jar view' and it works okay. I'm not positive but I think that might help you, also. --G. -- Geoff Gerrietts "information 'wants' to be free in the same way nature <ge...@ge...> 'abhors' a vacuum: it's not some moral view, it's http://www.gerrietts.net/ just the natural state of affairs." -- jwz |