How to enable the Java keyword assert in Eclipse program-wise?

To be specific:

  • Go to Run->run configuration
  • select java application in left nav pan.
  • right click and select New.
  • select Arguments tab
  • Add -ea in VM arguments.

Leave a Comment