A language with id xx is not installed. Installed languages are

629 阅读1分钟

 

Exception in thread "main" java.lang.IllegalArgumentException: A language with id 'sl' is not installed. Installed languages are: [js].
	at com.oracle.truffle.polyglot.PolyglotEngineImpl.requirePublicLanguage(PolyglotEngineImpl.java:853)
	at com.oracle.truffle.polyglot.PolyglotContextImpl.requirePublicLanguage(PolyglotContextImpl.java:842)
	at com.oracle.truffle.polyglot.PolyglotContextImpl.eval(PolyglotContextImpl.java:813)
	at org.graalvm.polyglot.Context.eval(Context.java:344)
	at com.oracle.truffle.sl.launcher.SLMain.executeSource(SLMain.java:99)
	at com.oracle.truffle.sl.launcher.SLMain.main(SLMain.java:84)

Process finished with exit code 1

 

JVM选项添加

 

-XX:+UseJVMCICompiler
-Dtruffle.class.path.append=language/target/simplelanguage.jar