• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to configure eclipse with jdk1.5

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !

I am having code compatible with jdk1.5. I installed eclipse3.0.1 and jdk1.5 in my system. But when i build my project through eclipse its give compilation error. Its gives compilation error for new features of jdk1.5. I added jre1.5 in my build path but of no use. Its still giving me compilation error for new feature of jdk1.5. I am working for quite some time with eclipse but after this also i m simply banging my head to solve this problem but in vain.
Can anybody help me out in this. I configured every thing possible in eclipse to compile, but those red marks are not going
 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eclipse 3.0.x doesnt support JDK 1.5, I believe. You should use Eclipse 3.1 (still in Milestone aka Beta version).
If you want the free stable one that support JDK 1.5 you should use Netbeans 4.0
 
subhit chauhan
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sanjaya Sugiarto:
Eclipse 3.0.x doesnt support JDK 1.5, I believe. You should use Eclipse 3.1 (still in Milestone aka Beta version).
If you want the free stable one that support JDK 1.5 you should use Netbeans 4.0




Hi Sanjaya !

Thanks for your reply. I installed eclipse 3.1 and now i am able to compile the project. I first tried with 3.0 than with 3.0.1 and than with 3.1 and got success at the end. But still one question in my mind is why the compilation dependent upon the version of eclipse? For compilation you just need the proper jar files, which i included in the build path.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Subhit,
The IDE uses it's own internal incremental compiler too. In particular, it is used for the keywords. This is so Eclipse can flag syntax errors. Since the keywords are different between java 1.4 and 1.5, the IDE can't compile with a different incremental compiler.

Note that you can change the minor version. So you could use 1.4.2 instead of 1.4.1 without any problems.
 
subhit chauhan
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jeanne Boyarsky:
Subhit,
The IDE uses it's own internal incremental compiler too. In particular, it is used for the keywords. This is so Eclipse can flag syntax errors. Since the keywords are different between java 1.4 and 1.5, the IDE can't compile with a different incremental compiler.

Note that you can change the minor version. So you could use 1.4.2 instead of 1.4.1 without any problems.




Thanks Jeanne !

Thanks for your valuable reply. There should be a way in eclipse to use the third party compiler. If i have jdk1.5 in my system there should be a way in eclipse to use my own compiler rather than whats available in eclipse.
Any way thanks for your valuable answer.....

subhit
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic