• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAVA Assertions

 
Nancy Antony
Ranch Hand
Posts: 145
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I installed JDK6. And when I write a simple program with assertion it neither works in command prompt nor in Netbeans6.9. I think if it will work in command prompt it will work in JDK. I tried java -ea both in command prompt as well as in Netbeans VM options. Any idea why its not working.

Regards,
Nancy
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe the assert condition simply isn't violated?
Some relevant code and the exact command-line invocation might help shed some light on things.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic