3

I am using jython and calling some custom Java API and I added all the jars I needed or I am using in my code and jython still complains about one class as it couldnt find (NoClassDefFoundError), I am not sure why, I checked all my jars in path and I have that class in one of those jars that are in path.

This is how I am running my code

jython -Dpython.path=a.jar:b.jar:c.jar client.py

and it complains about a class that is in c.jar, any idea why it happens. am I missing some extra options for jython (I am not including the jython.jar in this path)

EDIT: I was trying to figure this out myself and I found that adding the same jar files to CLASSPATH (like export CLASSPATH=$CLASSPATH:a.jar:b.jar...) and running jython client.py worked fine. This is a strange behavior, I am glad I am out of this issue sooner than I thought

pbathala
  • 1,390
  • 2
  • 18
  • 39

1 Answers1

0

I think jython expects Java-Classes on the Classpath ...

maybe that will help:

Classloader Trouble

Blauohr
  • 5,985
  • 2
  • 25
  • 31