|
Re: Compiler error for source using 'assert' [message #157919 is a reply to message #157903] |
Sun, 09 May 2004 04:00 |
Eclipse User |
|
|
|
Originally posted by: olivier_thomannNO.ca.ibm.comSPAM
Le Sun, 9 May 2004 08:39:37 +1200, "Rahul" <rahul.thakur@clear.net.nz>
>I am trying to compile a project that uses 'assert' keyword in lot of source
>files. I have tried playing around with the compiler preferences on source
>code compatibility but no joy :-(
>
>Can someone point how to do build a project that uses assertions under
>Eclipse M8. Much appreciate any help.
Go to Preferences>Java>Compiler>Compliance abd Classfiles
- Generated .class file compatibility to 1.4
- Source compatibility to 1.4
- Disallow identifiers called 'assert' to Error
Then we you run you need to enable assertions using the -ea vm
options.
--
Olivier
|
|
|
Powered by
FUDForum. Page generated in 0.03265 seconds