Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change to a new version of the JDK?

I want to change the JDK version 1.5.15 to 1.6.29. If I do this, will any problems occur in an existing application that was developed under JDK 1.5.15?

like image 398
Rakesh Patel Avatar asked Jan 09 '12 09:01

Rakesh Patel


People also ask

How do I update my JDK to latest version?

There is an alternative way to open Java Control Panel, go to Control Panel and click on the Java icon. Step 3: In the Java Control Panel dialog box, click on the Update tab. After that, click on the Update Now button.

How do I change Java version in Java?

Enable the latest installed version of Java in the Java Control Panel. In the Java Control Panel, click on the Java tab. Verify that the latest Java Runtime version is enabled by checking the Enabled box. Click OK in Java Control Panel window to confirm changes and close the window.


2 Answers

Technically that shouldn't be a problem. But I would have a bad feeling doing this without enough test coverage. There was a project in my company were they were also changing to a newer java version (don't remember which one). Everything seems to be fine but after some time a few bugs were rising. It turned out that one developer illegally relied on the order of a Collection class. The bug was caused by a changed implementation.

like image 120
Kai Avatar answered Nov 01 '22 13:11

Kai


Take a look at the Java SE 6 Compatibility with J2SE 5.0 document. It should be ok, but please go through the incompatibilities section just in case.

like image 3
dogbane Avatar answered Nov 01 '22 14:11

dogbane