Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do we need to compile JAR for JDK upgrade?

Tags:

java

For our java project, we use several JAR libraries. Some of the source code for the JAR libraries have been lost.

We will be upgrading the JRE version soon, do you know if we need to recompile the JAR libraries for the new JRE version? Since we don't have the source, is there a 100% accurate decompiler?

like image 926
firebird Avatar asked Aug 15 '13 13:08

firebird


1 Answers

No, all JDK versions are backwards-compatible with respect to older jars.

You do not need to recompile.

The only exception to this is if the JAR implements (not uses, but implements) a JDBC driver.

like image 103
kittylyst Avatar answered Sep 28 '22 03:09

kittylyst