Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JVM in Pyodide (WASM Port of Python) #1250

Open
airen1986 opened this issue Dec 4, 2024 · 1 comment
Open

JVM in Pyodide (WASM Port of Python) #1250

airen1986 opened this issue Dec 4, 2024 · 1 comment

Comments

@airen1986
Copy link

airen1986 commented Dec 4, 2024

Hi,

I am able to build jpype successfully in Pyodide (Which is a WASM port of Python), now the challenge is to have JVM in WASM, as I see below error:

Error: Traceback (most recent call last): File "/lib/python312.zip/_pyodide/_base.py", 
line 522, in eval_code .run(globals, locals) ^^^^^^^^^^^^^^^^^^^^ File "/lib/python312.zip/_pyodide/_base.py", 
line 356, in run coroutine = eval(self.code, globals, locals) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<exec>", line 3, in <module> File "/lib/python3.12/site-packages/jpype/_jvmfinder.py", 
line 70, in getDefaultJVMPath return finder.get_jvm_path() ^^^^^^^^^^^^^^^^^^^^^ File "/lib/python3.12/site-packages/jpype/_jvmfinder.py", 
line 204, in get_jvm_path raise JVMNotFoundException("No JVM shared library file ({0}) " jpype._jvmfinder.JVMNotFoundException: 
No JVM shared library file (libjvm.so) found. Try setting up the JAVA_HOME environment variable properly

Has anyone tried anything in such case, any tips or tricks?

Thanks

@Thrameos
Copy link
Contributor

Thrameos commented Dec 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants