This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes JDK1.4 and JDK 1.5 in one system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JDK1.4 and JDK 1.5 in one system" Watch "JDK1.4 and JDK 1.5 in one system" New topic
Author

JDK1.4 and JDK 1.5 in one system

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
Hi,

I have JDK 1.4 in my system for development purposes.But i wish to have 1.5 also in the system so that i can learn the latest features of Tiger.

But what settings should i change and will there be any conflict with these 2 versions during my development.

Tx & Regards
Kumar
Vivek Nidhi
Ranch Hand

Joined: Aug 10, 2003
Posts: 133
Hi,
You can use some IDE like Eclipse and install the two versions. After this you select the kit you want from the preferences.

Hope this helps

Vivek Nidhi
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
Hi Vivek,

Thanks..but what about the JAVA_HOME..classpath...

Regards
Sri Ram
Ranch Hand

Joined: Oct 03, 2005
Posts: 118
Originally posted by Vivek Nidhi:
You can use some IDE like Eclipse and install the two versions. After this you select the kit you want from the preferences.

This is not necessary. while compiling file give source and target JDK.
Say when u compile files for 1.4 give javac -target <release>
[ December 26, 2005: Message edited by: Sri Ram ]
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
ThankQ...

but what about JAVA_HOME....currently it is pointing to 1.4

can i let it be that way..

Regards
Sri Ram
Ranch Hand

Joined: Oct 03, 2005
Posts: 118
That can be the same. As long as u are not using jDK1.5 for ur Application, its no problem.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

First read this post in the "Mac OS" forum: Java 5.0 - The Missing Installation Instructions

In your '/Users/<someuser>' folder you should have a '.bash_profile' file - if not create one.

In this file you type:


Now your java is setup - just like on a window PC.

Rene
[ December 26, 2005: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
 
 
subject: JDK1.4 and JDK 1.5 in one system
 
Similar Threads
Error allocating a servlet instance
Unable to install JDK due to "bin\appletviewer.exe"
Problem with JRE compatibility
Is there something wrong ..
Java Compliance for Building and installing the software