Any idea how to enable assertions on Eclipse, pls?
No help found so far from Eclipse forum and on help...
Printable View
Any idea how to enable assertions on Eclipse, pls?
No help found so far from Eclipse forum and on help...
You have to do two things:
- set the compiler compliance to at least 1.4 (Window/Preferences/Java/Compiler)
- when you run the code pass the -ea parameter to the JVM (Run/Open Run Dialog/Arguments/VM Arguments