File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can Eclipse 3.0 compile code with JDK1.3

 
Nira Shavitt
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Nira Shavitt
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic