[graalvm-users] How to use GraalVM in Eclipse

Mikko Merikivi mikkommm at gmail.com
Thu Nov 12 07:18:17 PST 2020

So, I've downloaded and extracted the

I want to be able to run this example code in Eclipse:
import org.graalvm.polyglot.*;
import org.graalvm.polyglot.proxy.*;

public class HelloPolyglot {
    public static void main(String[] args) {
        System.out.println("Hello Java!");
        try (Context context = Context.create()) {
            context.eval("python", "print('Hello Python!')");

How do I do that? I tried modifying the project's Java Build Path ->
Libraries -> JRE System Library to point to the root directory of the
GraalVM, but now when I press "Run", it throws the following exception:

Exception in thread "main" java.lang.Error: Unresolved compilation problem:

at py4j.examples.HelloPolyglot.main(HelloPolyglot.java:5)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/graalvm-users/attachments/20201112/6116a12e/attachment.html 

More information about the GraalVM-Users mailing list