monashmicroimaging / podocytes

GNU General Public License v3.0
2 stars 3 forks source link

Figuring out how to bundle the JVM #37

Open jni opened 5 years ago

jni commented 5 years ago

The basic idea:

  1. bundle the jvm files (jvm.so/jvm.dylib?) using PyInstaller arbitrary data file bundling: https://pythonhosted.org/PyInstaller/spec-files.html#adding-data-files
  2. set JAVA_HOME to this path using os.environ. The question is what is the current working directory when the app is launched, and what is the relative path to the jvm from that.
  3. profit. =P

Rather than doing this on podocytes, I intend to make a tiny app that does each of these things independently on its own, so, just print the jvm path and then try to open a tiny bioformats file.