aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Can Eclipse 3.0 compile code with JDK1.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Can Eclipse 3.0 compile code with JDK1.3" Watch "Can Eclipse 3.0 compile code with JDK1.3" New topic
Author

Can Eclipse 3.0 compile code with JDK1.3

Nira Shavitt
Greenhorn

Joined: Jul 26, 2004
Posts: 19
hi,

I'm running Eclipse 3.0 with jdk 1.4.2 (my Path env. variable starts with jdk 1.4.2) and trying to compile with jdk1.3, but failes. When I changed the runtime JRE to point on jdk 1.3.1 (by choosing External Tools-> JRE -> Seperate JRE to the root dir of JDK 1.3 ) I failed to compile because it couldn't find SAX classes, (which are not part of jdk1.3).

Can anyone tell me how I can compile with jdk1.3, while using eclipse3.0 which runs with jdk 1.4?

tx,
Nira.
Greg T Robertson
Ranch Hand

Joined: Nov 18, 2003
Posts: 91
Well it sounds to me like it's already trying to use 1.3 if it's failing on the SAX parser classes now. You just need to add to your project's classpath for the SAX parser.
Nira Shavitt
Greenhorn

Joined: Jul 26, 2004
Posts: 19
Originally posted by Greg T Robertson:
Well it sounds to me like it's already trying to use 1.3 if it's failing on the SAX parser classes now. You just need to add to your project's classpath for the SAX parser.


thanks. Yes, it does use jdk 1.3.1, as this is what I configured. Also, I already added the SAX jar (crimson.jar) to the classpath, but it didn't help.
However, I tried the previous eclipse version (2.x) and it did compiled well with jdk 1.3. But I'd like to work with eclipse 3.0. So?

Nira.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Nira Shavitt:
Also, I already added the SAX jar (crimson.jar) to the classpath, but it didn't help.


What classpath? You need to add it to the projects Build Path...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Nira Shavitt
Greenhorn

Joined: Jul 26, 2004
Posts: 19
Sorry, I ment that I added the jar to the project build path. But, as I mentioned, it did not solve the problem.

Any other idea?

tx,
Nira
Nira Shavitt
Greenhorn

Joined: Jul 26, 2004
Posts: 19
I made it! I had to add the missing jars to the Ant classpath! not to the project classpath. Under 'External Tools...'->Ant Build -> project build.xml-> classpath, I added crimson.jar and xml-apis.jar. Then Ant manages to run thru Eclipse3.0 which is using jdk 1.3.1. for compilation.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
So you are using Ant to compile your code, instead of the inbuild Eclipse compiler??? If you had told us, we probably could have helped more effectively... :roll:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can Eclipse 3.0 compile code with JDK1.3
 
Similar Threads
Eclipse IDE and JDK
Upgrade jdk
Java 6 support for EJB 2.0
Doubt in generic method
Problem with starting Eclipse