About the enable statement

can any body tell me how can I include approval in eclipse Helios? I am using java 6

+4
source share
3 answers
  • Go to Run> Run Configurations ...
  • Choose a Java application
  • Go to the Arguments tab
  • Add -ea to your VM arguments
+9
source

See this article, Remember to enable Java assert . And also see this discussion about including statements.

+2
source

If you want to include statements for one specific execution, see WhiteFang34 answer.

I prefer to have default statements, so I do

  • Go to Window → Settings
  • Go to Java -> Installed JREs
  • Select JRE and click Change
  • Add -ea to default VM arguments * -field
+2
source

Source: https://habr.com/ru/post/1345192/


All Articles