Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

upgrading jdk

Thread view: 
ruds - 27 Jul 2007 06:08 GMT
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?
Roedy Green - 27 Jul 2007 09:47 GMT
>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
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Arne Vajhøj - 29 Jul 2007 20:09 GMT
>> 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?
[quoted text clipped - 4 lines]
> 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
Arne Vajhøj - 29 Jul 2007 20:08 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.