Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Compiler error for source using 'assert'
Compiler error for source using 'assert' [message #157903] Sat, 08 May 2004 20:39 Go to next message
Rahul is currently offline RahulFriend
Messages: 64
Registered: July 2009
Member
Hi,
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.

Thanks in advance,

Rahul
Re: Compiler error for source using 'assert' [message #157919 is a reply to message #157903] Sun, 09 May 2004 04:00 Go to previous message
Eclipse UserFriend
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
Previous Topic:Bootclasspath
Next Topic:Identifying Memory leaks
Goto Forum:
  


Current Time: Sat Nov 09 03:41:52 GMT 2024

Powered by FUDForum. Page generated in 0.03265 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top