The Orekit v13.1 python packages (JCC versino and orekit_jpype) has now been released, with all the fixes and new features available at: Orekit 13.1 released . Many thanks for the efforts put into this release!
For new projects I do recommend the orekit_jpype version which is much thinner, less opinionated, installs with pip and if continues to work well will be the version for the future. Also important, thanks to @yzokras we have more maintainers for this version
There’s not much code. I’m calling init on the JVM from an “_init_” python file. I’m using venv. It works fine with jpype 1.5.X.
The only message I get is the one I posted with an exit code
So my JAVA_HOME points to JDK11, and the env. var. is correct when read with os
If I do this with jpypte 1.5.2:
print(jpype.getDefaultJVMPath())
I get 11 too
However, when I do “java -version” in the terminal from venv, it says it’s JDK 8…
Any ideas how to solve this?
Edit: turns out just importing jpype 1.6.0 gets me the exit code
Not sure what this could be, you likely have several installations of java but that shouldn’t be a problem I think (your PATH points to one and the JAVA_HOME to another version), but cannot be excluded. You could try to set JDK 11 as your default windows JDK but risk that may give issues with some other program ( switch between multiple java versions | Medium )
There is a risk that this is related to previous windows issue with jpype, but that should be in jpype tests. It should fine using the 1.5.2 jpype version but would limit you to python <3.13 and missing some bug fixes.