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

Issue when compiled with JDK-17 #12

Open
mssum opened this issue Feb 15, 2024 · 0 comments
Open

Issue when compiled with JDK-17 #12

mssum opened this issue Feb 15, 2024 · 0 comments

Comments

@mssum
Copy link

mssum commented Feb 15, 2024

I am new to GraalVM. While building simpletool with GraalVM-JDK-17, following error seems to prevent successful compilation ($mvn clean package):
simpletool/src/main/java/module-info.java:[41,1] module org.graalvm.st reads package org.graalvm.home from both org.graalvm.polyglot and org.graalvm.sdk

The issue is seen on windows too.
On linux, the software tools have following versions:

Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Maven home: /usr/lib/maven
Java version: 17.0.9, vendor: GraalVM Community, runtime: .../_installs/graalvm-ce-17
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-48-generic", arch: "amd64", family: "unix"

Do we need to add any specific exports for simpletool when compiled with GraalVM-JDK-17?
Below is the tail log of the compilation error seen:

[INFO] --- maven-compiler-plugin:3.11.0:compile (default-compile) @ simpletool ---
[INFO] Changes detected - recompiling the module! :source
[INFO] Compiling 6 source files with javac [debug target 17 module-path] to target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/prj/myitems/javaUnitTest/integrationPrj/simpletool/src/main/java/module-info.java:[41,1] module org.graalvm.st reads package org.graalvm.home from both org.graalvm.polyglot and org.graalvm.sdk
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.962 s
[INFO] Finished at: 2024-02-15T22:58:02+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project simpletool: Compilation failure
[ERROR] /home/prj/myitems/javaUnitTest/integrationPrj/simpletool/src/main/java/module-info.java:[41,1] module org.graalvm.st reads package org.graalvm.home from both org.graalvm.polyglot and org.graalvm.sdk
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
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

1 participant