aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes jdk 1.6 but I need to compiler with jdk 1.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "jdk 1.6 but I need to compiler with jdk 1.5" Watch "jdk 1.6 but I need to compiler with jdk 1.5" New topic
Author

jdk 1.6 but I need to compiler with jdk 1.5

Dora Di Donato
Ranch Hand

Joined: Nov 27, 2009
Posts: 72
Hey guys,
someone can help me, I install on my ubuntu 10 the jdk 1.6 but I need to compile with jdk 1.5.I use eclipse.
How can compiler without unistall the jdk 1.6 if it is possible?

thanks

Dora Di Donato
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
Have you looked into the compiler options?

for example, target and source options are quite interesting

Bill
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16014
    
  20

You can install multiple JDKs in Tomcat and assign them to projects on a per-project basis.

However, as William has pointed out, Java has an excellent mechanism for providing legacy support for older versions of Java from newer JDKs. That's a feature that has been part of Java since the beginning, and one of the reasons why I pretty much abandoned less civilized development platforms.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: jdk 1.6 but I need to compiler with jdk 1.5