How to get Graal SDK packages to work without Maven?

后端 未结 5 1107
夕颜
夕颜 2021-02-06 04:55

I am developing a Java application that needs to execute JavaScript. Nashorn JS engine is about to get deprecated and the replacement is the set of APIs provided by Graal SDK wh

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-06 05:42

    With next characteristics:

    • IntelliJ IDEA
    • SDKMan
    • GraalVM CE 19.0.0

    I solved this just with following steps:

    1. In intelliJ go to: File -> Project structure -> SDKs
    2. Add a new SDK named GraalVM (or choose a descriptive name) then in JDK home path select the GraalVM installation path in my case /Users/cjeronimo/.sdkman/candidates/java/19.0.0-grl

    1. Finally and so important add the graal-sdk.jar

提交回复
热议问题