Skip to content

Issue when compiled with JDK-17 #12

@mssum

Description

@mssum

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions