PDA

View Full Version : Assertions in eclipse



Ramses de Norre
October 17th, 2006, 08:19 PM
Does anyone know how to turn on assertion checking in eclipse?

amo-ej1
October 18th, 2006, 10:05 AM
I assume you're talking about Java projects here, change your JRE to have the flags -ea

from java -help


-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions

Ramses de Norre
October 18th, 2006, 12:21 PM
OK that did the trick!
I guess I misread the man page and I used the -esa option instead of -ea, which didn't work =).

And it's indeed for java projects.