 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: Enable ASSERTIONS in Java IDE
Posted: Oct 02, 2009 - 10:33 PM
|
|
Registered Member

Joined: Oct 02, 2009
Posts: 13
|
|
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) |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Enable ASSERTIONS in Java IDE
Posted: Oct 05, 2009 - 08:03 AM
|
|
Registered Member

Joined: May 18, 2009
Posts: 1532
|
|
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. |
_________________ Shalini
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: Re: RE: Enable ASSERTIONS in Java IDE
Posted: Oct 05, 2009 - 08:56 PM
|
|
Registered Member

Joined: Oct 02, 2009
Posts: 13
|
|
| 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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: Enable ASSERTIONS in Java IDE
Posted: Oct 06, 2009 - 07:26 AM
|
|
Registered Member

Joined: May 18, 2009
Posts: 1532
|
|
You are welcome.. |
_________________ Shalini
MyEclipse Support
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |