Skip to content

Trouble Accessing Java Classes from Python Using GraalPy and GraalVM #448

Discussion options

You must be logged in to vote

I tried your example and it printed Alice with no errors. What I did:

  • Save your java code as com/example/model/User.java and your python code as main.py
  • javac com/example/model/User.java
  • graalpy --vm.cp=. main.py

The differences I have from you is that I used the latest release, I'm on Linux and I didn't build a JAR. Could you please try the latest release (24.1.1, the graalpy-jvm variant)?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ShuzoShinagawa1102
Comment options

@msimacek
Comment options

Answer selected by msimacek
@ShuzoShinagawa1102
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy