File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes assertions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "assertions" Watch "assertions" New topic
Author

assertions

Jui Mahajan
Ranch Hand

Joined: Jun 02, 2003
Posts: 62
if i have to disable (or enable) 2 classes, say class 1 and class 2, can i do it like this :-
java -da:class1,class 2
or i do like this:
java -da:class1
java -da:class2
Jui


-----jui<br />scjp1.4
Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
First you have enable assertion because by default assertion is off:
java -ea Program
Now to disable in one class Test:
java -ea -da:Test Program
To disable in two classes Test and Test1
java -ea -da:Test -da:Test1 Program
Thanks
Barkat
Jui Mahajan
Ranch Hand

Joined: Jun 02, 2003
Posts: 62
Thanks. That really helped. I have my exam tomorrow and I am feeling really tensed.
Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
I am sure you will do great. Best of luck.
Barkat
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: assertions
 
Similar Threads
How Can I reverse - Engineer a .class file to a .java file?
Deitel & Deitel
Publishing Java Class as a web service
Multithreading and concurrent user requests
Downloading Java2 classes from java.sun.com