Jython java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org / json / simple / JSONObject

I needed to use java code in python to reduce, so I chose Jython. after a while I managed to figure out how to run my code, but I have the strangest thing. When I write

from vohmm.corpus import Token;

most of the time I will get

java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org / JSON / simple / JSONObject

but when I do it again (sometimes after 3 attempts), it will import the class, skipping some methods, but I can use the class.

can anyone understand this?

thanks eyal

+5
source share
1 answer

Jython , . , , - ; , , - .

, , , , , ​​(.. -cp C:\path\to\my.jar;% CLASSPATH%), jython .

, , , jython . , , , , , .

+3

All Articles