Enable Java Assertions in Eclipse

Here’s how you enable Java assertions in Eclipse.

1. Go to Window -> Preferences.

2. In the filter textbox, type “JRE” and click on “Installed JREs”.

3. Double click on the installed JRE on the right to edit.

4. Add “-ea” to the “Default VM Arguments” textbox.

5. Click “Finish” and “OK”. You now have assertions enabled in Eclipse.

Related posts:

  1. Eclipse Indigo on Java 7
  2. Java 7 on Eclipse Indigo

One Comment to “Enable Java Assertions in Eclipse”

  1. mickw 9 March 2012 at 3:23 pm #

    thanks v much, can get my assignment started now!


Leave a Reply