Java.Build-Path.Classpath-Variables Deprecated: Use Java-Releated Library Instead

62 Views Asked by At

What are the details of your problem?

Java Build-Path Classpath-Variables are being marked as deprecated for JDK-11 on Eclipse-Preferences. I'm not sure if I can or how-to-fix these kind of warnings being raised. We're required to use a specific version of Eclipse and Java now. I'm coming from using IntelliJ so I'm not familiar if this setup is not correct.

JRE_LIB is deprecated: Use the JRE System Library instead. 
JRE_SRC is deprecated: Use the JRE System Library instead. 
JRE_SRCROTT is deprecated: Use the JRE System Library instead. 
JUNIT_HOME is deprecated: Use the JUNIT Library instead. 

Can I fix this warning? Or is this just a general disclaimer? If this can get fixed, how?

JRE_LIB (non modifiable, deprecated) - X:\...\Java\jdk-11.x.x.x\lib\jrt-fs.jar)
JRE_SRC (non modifiable, deprecated) - X:\...\Java\jdk-11.x.x.x\lib\src.jar)
JRE_SRCROOT (non modifiable, deprecated) - (empty)
JRE_LIB (non modifiable, deprecated) - X:\...\eclipse\plugins\org.junit_4.x.x.vYYYYMMDD-NNNN.jar) 

What did you try and what were you expecting?

I tried adding New... and no options presented themselves for the JRE System Library to select. I couldn't Remove or Edit... any of these options. The buttons were grayed on selection. And, I didn't find any Quick Fix or other recommendations to select through. I can't switch off using the prescribed JDK - so not only can I not install but I'm not allowed to use another alternative.

0

There are 0 best solutions below