I just found out about Jython and I really wanted to use it. Please forgive me if I'm doing something wrong and please explain. I made a simple python program to test Jython, test.py. When typing
jython test.py
in the command prompt it run normally. So I decided to make a Java .class file. Since jythonc doesn't exist anymore, I tried
jython -m py_compile test.py
and a .class file was created in the same directory called test$py.class. (this is equivalent to
>>> import py_compile
>>> py_compile.compile('test.py')
as I tried as well)
However, when I tried
java test$py
it threw me an exception:
Error: Could not find or load main class test$py
Caused by: java.lang.NoClassDefFoundError: org/python/core/PyRunnable
(I also tried with classpath but it did the same exception)
What does it mean? How can I solve it?
Note: I've downloaded Jython 2.5.4rc1.