Due to apache-tomcat 10 requirements, I need the "rt.jar" from Java 8 (possibly 7). I need to compile my current stuff (I am on jdk 11) using "javac -source 8 -target 8 ..." (hoping not 7 here) but to do that right javac also needs "-bootclasspath somePathToRight/rt.jar".
Where can I find the jar file for Java8 (and 7) in case?
If you use Linux or macOS, then tools like SDKMAN and ASDF VM allow you to install multiple versions of Java at the same time. That way you can get
rt.jarfrom the necessary version.SDKMAN is more straightforward to use but ASDF VM is more extensible.
To get started with the latter you need to:
asdf list-all javaasdf install java adoptopenjdk-8.0.345+1~/.asdf/installs/java/adoptopenjdk-8.0.345+1