Is -cp Option Not Working In Jpype?
I am using jpype with Python 2.7 (jpype distribution from the university of california) and I'm trying to use a Java class from a jar file. It works fine if I start the JVM with st
Solution 1:
JPype doesn't call the java binary directly. It uses the jni libraries. Probably -cp is just a option of the java binary. The same will probably apply for the CLASSPATH env.
If you want to use more than one jar file or directories in the classpath you can use -Djava.class.path
and concatenate the elements with the system's path separator. You can use os.path.pathsep.join
for that purpose.
Post a Comment for "Is -cp Option Not Working In Jpype?"