Skip to content

Commit

Permalink
Merge pull request #187 from equinor/186-one-should-note-that-the-cla…
Browse files Browse the repository at this point in the history
…ss-path-can-only-be-set-prior-starting-the-jvm

fixed bug in setting classpath
  • Loading branch information
EvenSol authored Mar 17, 2023
2 parents bd5a5d0 + 81cfa27 commit 2b01190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neqsim/neqsimpython.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import jpype

if not jpype.isJVMStarted():
jpype.startJVM(convertStrings=False)
jvmVersion = jpype.getJVMVersion()[0]
if jvmVersion <= 8:
jpype.addClassPath('./lib/libj8/*')
else:
jpype.addClassPath('./lib/*')
jpype.startJVM(convertStrings=False)

jNeqSim = jpype.JPackage('neqsim')

0 comments on commit 2b01190

Please sign in to comment.