I was tasked to upgrade an old desktop app using old java and it used rt.jar
and jfxrt.jar
libraries. I have searched online about the libraries(rt.jar
& jfxrt.jar
) but apparently, it is no longer there in Java 17 and JavaFX 17. What are the equivalent libraries for rt.jar
and jfxrt.jar
for the latest version of Java 17 and JavaFX 17?
Asked
Active
Viewed 1,220 times
3

Arvind Kumar Avinash
- 71,965
- 6
- 74
- 110

lemang coconut
- 103
- 10
-
4What functionality of `rt.jar` do the app use? – Robert Nov 02 '21 at 17:36
-
I do not know actually as I am really new in java app development. They throw a really old java desktop app at me to upgrade and I am really lost right now. – lemang coconut Nov 03 '21 at 06:58
1 Answers
7
Regarding JavaFX and Java 17, you need to use a new JavaFX-specific SDK with all the necessary runtime dependencies here: https://gluonhq.com/products/javafx/
Also, refer here to the starting place to learn more about JavaFX: https://openjfx.io/openjfx-docs/
Note that rt.jar
was removed as of Java 9, read more here: https://docs.oracle.com/en/java/javase/14/migrate/index.html#JSMIG-GUID-A78CC891-701D-4549-AA4E-B8DD90228B4B
Class and resource files previously stored in lib/rt.jar, lib/tools.jar, lib/dt.jar and various other internal JAR files are stored in a more efficient format in implementation-specific files in the lib directory.

Nikolas Charalambidis
- 40,893
- 16
- 117
- 183