Problem importing implementation classes

Issue #545 new
Jörg Kienzle created an issue

It used to be that by default the Java runtime (rt.jar) was available when importing implementation classes. On my machine when trying to import implementation classes this is no longer the case. When I manually add “rt.jar” it works, i.e., I can import an implementation class, e.g. java.util.ArrayList. But then I can’t import any operations…

Comments (1)

  1. Matthias Schoettle

    This was introduced with commit 3beef96. The old system property sun.boot.class.path provides the class path of the JRE/JDK whereas java.class.path does not.

    Java 9 and later don’t have a single rt.jar anymore, so it requires a different solution to get the available Java classes (from the base module).

    See:

    https://stackoverflow.com/q/46438557

    https://stackoverflow.com/q/41932635

  2. Log in to comment