MyEclipse: Enable ASSERTIONS in Java IDE

Nigel_VS - Oct 02, 2009 - 10:33 PM
Post subject: Enable ASSERTIONS in Java IDE
Can someone please advise how to advise how to enable assertions.
Found this on java ranch:

Click on Run->Run->Arguments Tab
Over there in VM arguments place -ea and it should work

I am using MyEclipse 7.5 and the run menu or button has no "Arguments" option under it.

Many thanks
Nigel

(i can get it to work at DOS commandline)
support-shalini - Oct 05, 2009 - 08:03 AM
Post subject: RE: Enable ASSERTIONS in Java IDE
Nigel,
You can go to Run > Run Configurations or right click on the java class and from the context menu select Run As > Run Configurations. on the second tab (x)= Arguments, under VM arguments you can add -ea. I have attached a screen shot for your reference.
Nigel_VS - Oct 05, 2009 - 08:56 PM
Post subject: Re: RE: Enable ASSERTIONS in Java IDE
support-shalini wrote:
Nigel,
You can go to Run > Run Configurations or right click on the java class and from the context menu select Run As > Run Configurations. on the second tab (x)= Arguments, under VM arguments you can add -ea. I have attached a screen shot for your reference.


Hi Shalini - that's great thanks, it has worked fine.
Thank you very much

Nigel
support-shalini - Oct 06, 2009 - 07:26 AM
Post subject: RE: Re: RE: Enable ASSERTIONS in Java IDE
You are welcome..
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits