3

If I launch Jython like this:

"java -cp jython.jar" 
or
"java -cp jython.jar org.python.util.jython"

works ok and launches Jython REPL

if I include another jar like:

"java -cp jython.jar:servlet-api.jar org.python.util.jython"

gaves me the folowing error:

Error: Could not find or load main class org.python.util.jython

Any ideas how can I fix the error?

(both .jar(s) are available and in the current folder)

ᴀʀᴍᴀɴ
  • 4,443
  • 8
  • 37
  • 57
ZEE
  • 2,931
  • 5
  • 35
  • 47

1 Answers1

0

java -cp jython.jar:servlet-api.jar org.python.util.jython works for me on OpenJDK 7u221 and Jython 2.7.1.

user323094
  • 3,643
  • 4
  • 21
  • 30