• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to enable assertions in eclipse

 
Balaji Bang
Ranch Hand
Posts: 182
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am using eclipse... How to give the command to enable assertions???
 
Punit Singh
Ranch Hand
Posts: 952
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Banu Chowdary wrote:Hi
I am using eclipse... How to give the command to enable assertions???


Right Click---> Run as---> open run dialogue--->Arguments--->VM Arguments -ea


Better will be to run from command line.


 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Banu Chowdary wrote:Hi
I am using eclipse... How to give the command to enable assertions???

Good topic titles are good search keywords: lot of answers here.
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4680
329
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Banu Chowdary wrote:Hi
I am using eclipse... How to give the command to enable assertions???


It depends on the version of your eclipse.

While there are nothing to talk about eclipse with SCJP, we have another forum for IDE-related questions.


Devaka.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic