facebook

Enable ASSERTIONS in Java IDE

  1. MyEclipse Archived
  2.  > 
  3. Examples On-Demand
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #302894 Reply

    Nigel Schoon
    Participant

    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)

    #302923 Reply

    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.

    Attachments:
    You must be logged in to view attached files.
    #302961 Reply

    Nigel Schoon
    Participant

    @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

    #302988 Reply

    You are welcome..

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Enable ASSERTIONS in Java IDE

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in