This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • 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:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Can Eclipse 3.0 compile code with JDK1.3

 
Greenhorn
Posts: 19
  • 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.
 
Ranch Hand
Posts: 91
  • 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
  • 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.
 
author
Posts: 14112
  • 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
  • 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
  • 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
Posts: 14112
  • 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:
 
Let's get him boys! We'll make him read this tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!