Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

JDK1.4 and JDK 1.5 in one system  RSS feed

 
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vivek,

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

Regards
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That can be the same. As long as u are not using jDK1.5 for ur Application, its no problem.
 
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!