aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Being assertive with Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Being assertive with Eclipse" Watch "Being assertive with Eclipse" New topic
Author

Being assertive with Eclipse

Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2581

I have eclipse 3, and I use "assert" liberally in my Java code for development phase. However, though I have set compiler compliance for Java 1.4, eclipse still marks it as error, saying -
Syntax error on token "assert", assert expected

How can I configure Eclipse s that it recognizes assert correctly.

TIA,
- Manish
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
in the compiler options, "Compliance and Classfiles" tab, set all 3 options in the JDK compliance section to 1.4.


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Being assertive with Eclipse