MyEclipse Forums
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Nigel_VS
Post subject: Enable ASSERTIONS in Java IDE  PostPosted: Oct 02, 2009 - 10:33 PM
Registered Member
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)
 
 View user's profile Send private message  
Reply with quote Back to top
support-shalini
Post subject: RE: Enable ASSERTIONS in Java IDE  PostPosted: Oct 05, 2009 - 08:03 AM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
Nigel_VS
Post subject: Re: RE: Enable ASSERTIONS in Java IDE  PostPosted: Oct 05, 2009 - 08:56 PM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
support-shalini
Post subject: RE: Re: RE: Enable ASSERTIONS in Java IDE  PostPosted: Oct 06, 2009 - 07:26 AM
Registered Member
Registered Member


Joined: May 18, 2009
Posts: 1532

You are welcome..

_________________
Shalini
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits