aspose file tools
The moose likes IDEs, Version Control and other tools and the fly likes Assertion Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Assertion" Watch "Assertion" New topic
Author

Assertion

tushar fasate
Greenhorn

Joined: May 19, 2008
Posts: 7
can anybody tell me how to enable assertions in eclipse?
Vinayagar Karpagam
Ranch Hand

Joined: Apr 09, 2006
Posts: 72
I hope adding -ea as VM arg in the launch configuration and setting the source code level to >= 1.4 should be enough to enable assertions.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6588
    
    1

Open the run dialog and modify the VM arguments under the 'Arguments' tab. I would suggest that you use notepad instead of eclipse, since the IDE helps you autocomplete almost everything


SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Assertion