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
IntelliJ is not adding all of the Jars from the Graal SDK to your classpath.
You can add the Jars to your classpath inside IntelliJ by navigating to
File > Project Structure > SDKs > Choose your Graal SDK
Then click the +
button at the bottom to add the Jar files. Adding the graal-sdk.jar will fix the problem with finding the org.graalvm
package.
This will avoid having to modify your pom.xml
file to fix a problem with the IDE.