NameError: name 'java' is not defined
Status: Beta
Brought to you by:
devilwolf
Python 2.4.4 (#1, Oct 23 2006, 13:58:00)
[GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import jpype
>>> jpype.startJVM('/usr/lib/jvm/java/jre/lib/i386/client/libjvm.so')
>>> java.lang.System.out.println("hello world")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'java' is not defined
>>> java.lang.System.out.println(1)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'java' is not defined
I've made the changes suggested in the README-LINUX.txt files.
Logged In: NO
>>> jpype.java.lang.System.out.println("hello world")
hello world
There we go.