Currently I'm working on a simulation project that involve both Java and Python.
The simulator interface is written in Java Swing. The solver/engine is written in Python.
I'm using Eclipse to develop the project. I use Process and Runtime to call the Python Script with some parameters. I use pydev inside Eclipse to run the Python script.
Now, after I export the project to a JAR file, the Python code is located inside the JAR as a folder. Apparently, java won't be able to call the Python Script in the JVM anymore. Is there a way to use JAR to call Python Script and parse the simulation results?
Jython might be a option, but I'm trying to see if there is simpler way without change significant amount of code from the original Python script.
Thank you so much, William