upgrading jdk

R

ruds

hi,
i have been using jdk 1.4.2 and now i want to upgrade to 1.6.
How will this affect the programmes that have been running afterwards?
what changes will i have to make for weblogic server and tomcat?
 
R

Roedy Green

i have been using jdk 1.4.2 and now i want to upgrade to 1.6.
How will this affect the programmes that have been running afterwards?
what changes will i have to make for weblogic server and tomcat?

there is nothing you must do to your existing code. You might want to
recompile it, or run it through something like IntelliJ inspector to
convert loops to for:each, generify your Collections etc, but that is
optional.

As for your webserver, I don't recall having to do anything, or if it
was , it was just fixing one line in a config file somewhere. Just use
a global search utility like Funduc see
http://mindprod.com/jgloss/sr.html
to see if you can find the name of the old compiler burned into any
config file.

Make sure your new Javac.exe is on the path and the old one is not.
See http://mindprod.com/jgloss/jdk.html
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

ruds said:
i have been using jdk 1.4.2 and now i want to upgrade to 1.6.
How will this affect the programmes that have been running afterwards?
what changes will i have to make for weblogic server and tomcat?

Existing compiled classes should continue to run.

Existing source code should compile with -source 1.4 without
changes.

If you want to use the new features, then you may need to
make some changes to get it to compile (like if you have
been calling variables for enum).

Arne
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Roedy said:
there is nothing you must do to your existing code. You might want to
recompile it, or run it through something like IntelliJ inspector to
convert loops to for:each, generify your Collections etc, but that is
optional.

There are a few changes that are non optional.

Most well known are probably variables named enum.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top