From: Mollenkopf, A. <Ada...@fe...> - 2009-02-19 00:40:21
|
I am having trouble getting Jython to execute a very simple custom java class. My classpath appears to be set appropriately because I can verify that it works by executing the main method of the object from a command prompt. However when I run it with jython.bat it fails to import the object. Here is the error message and other associated material: C:\jython2.2.1\fedex>jython.bat adam.py Traceback (innermost last): File "adam.py", line 1, in ? File "C:\jython2.2.1\fedex\adam.py", line 3, in ? NameError: Adam C:\jython2.2.1\fedex\adam.py contains: from adam import *; Adam.doSomething(); C:\jython2.2.1\fedex\adam\Adam.java contains: package adam; public class Adam { public static void doSomething() { System.out.println("doing something."); } public static void main(String _args[]) { System.out.println("Adam Main"); } } Directory of C:\jython2.2.1\fedex\adam: 02/18/2009 04:25 PM 503 Adam.class 02/18/2009 04:25 PM 221 Adam.java CLASSPATH=C:\jython2.2.1\jython.jar;C:\jython2.2.1\fedex I am running Python 3.0.1. Any ideas? Thanks in advance for any assistance you can provide, Adam |