|
From: Venkataraman R. <po...@ho...> - 2001-08-20 21:30:16
|
<html><div style='background-color:'><DIV>From</DIV> <DIV>Venkat</DIV> <DIV> </DIV> <DIV>Hi,</DIV> <DIV> </DIV> <DIV>I use Windows 2000 and I program in Java.</DIV> <DIV> </DIV> <DIV>I have installed Jython-2.1a3. I can invoke Jython from command line</DIV> <DIV>by typign "Jython" and it runs well. I want to embed it in a Java</DIV> <DIV>application.</DIV> <DIV> </DIV> <DIV>I tried running SimpleEmbedded.java, but I get error messages.</DIV> <DIV>I have specified below the classpath and path set by me. I have</DIV> <DIV>also attached the errors produced.</DIV> <DIV> </DIV> <DIV>__________________________________________________</DIV> <DIV>ClassPath:<BR>.;.;C:\PROGRA~1\JMF21~1.1\lib\sound.jar;<BR>C:\PROGRA~1\JMF21~1.1\lib\jmf.jar;%systemroot%\java\classes;<BR>C:\jython-2.1a3;</DIV> <DIV><BR>Path:<BR>%SYSTEMROOT%\SYSTEM32;%SYSTEMROOT%;<BR>%SYSTEMROOT%\SYSTEM32\WBEM;<BR>C:\JDK1.3.1\BIN;C:\PYTHON21;C:\JYTHON-2.1a3;<BR>C:\PROGRAM FILES\BORLAND\CBUILDER3\BIN</DIV> <DIV>Error message</DIV> <DIV><BR>Exception in thread "main" java.lang.NullPointerException<BR> at org.python.core.PyJavaClass.lookup(PyJavaClass.java:43)<BR> at org.python.core.PyObject.<init>(PyObject.java:46)<BR> at org.python.core.PySingleton.<init>(PySingleton.java:8)<BR> at org.python.core.PyNone.<init>(PyNone.java:10)<BR> at org.python.core.PySystemState.initStaticFields(PySystemState.java:391<BR>)<BR> at org.python.core.PySystemState.initialize(PySystemState.java:370)<BR> at org.python.core.PySystemState.initialize(PySystemState.java:344)<BR> at org.python.core.PySystemState.initialize(PySystemState.java:337)<BR> at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:63)<BR> at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:47)<BR> at SimpleEmbedded.main(SimpleEmbedded.java:8)<BR>_______________________________________________</DIV> <DIV> </DIV> <DIV>Can you let me what I am doing wrong ?</DIV> <DIV>Thanking you</DIV> <DIV>Venkat</DIV> <DIV>21 Aug 2001</DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |