I have a working example that I am trying to push to AWS Lambda serverless function. The AWS runtime (Python3.7) has OpenJDK 1.8 installed and the JVM appears to be running. FYI, I am currently using an evaluation copy – could this be related to licensing.
Here are the container specs:
openjdk version "1.8.0_302" OpenJDK Runtime Environment (build 1.8.0_302-b08) OpenJDK 64-Bit Server VM (build 25.302-b08, mixed mode)
The aspose version is 21.9.
Here is a sample of the associated python code:
import jpype def init_jvm(): if jpype.isJVMStarted(): return # jpype.startJVM() stream = os.popen('java -version') output = stream.read() jpype.startJVM(jpype.getDefaultJVMPath()) # you can then access to the basic java functions jpype.java.lang.System.out.println("hello world") print(output) init_jvm() from asposecells.api import Workbook #the code fails at the next line workbook0 = Workbook()