File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -634,7 +634,7 @@ public static Path getEspressoRuntime(TruffleLanguage.Env env) {
634
634
TruffleFile resource = env .getInternalResource ("espresso-runtime-" + runtimeName );
635
635
if (resource == null ) {
636
636
throw EspressoError .fatal ("Couldn't find: espresso-runtime-" + runtimeName + " internal resource.\n " +
637
- "Did you add the appropriate jar to the classpath ?" );
637
+ "Did you add the corresponding jar to the class or module path ?" );
638
638
}
639
639
Path resources = Path .of (resource .getAbsoluteFile ().toString ());
640
640
assert Files .isDirectory (resources );
@@ -656,8 +656,9 @@ public static Path getEspressoRuntime(TruffleLanguage.Env env) {
656
656
return Paths .get (System .getProperty ("java.home" ));
657
657
}
658
658
}
659
- // TODO add potential remedies
660
- throw EspressoError .fatal ("Couldn't find suitable runtime libraries for espresso" );
659
+ throw EspressoError .fatal ("Couldn't find suitable runtime libraries for espresso. You can try to\n " +
660
+ "add a jar with the necessary resources such as org.graalvm.espresso:espresso-runtime-resources-*,\n " +
661
+ "or set java.JavaHome explicitly." );
661
662
} catch (IOException e ) {
662
663
throw EspressoError .shouldNotReachHere (e );
663
664
}
You can’t perform that action at this time.
0 commit comments