Command-Line Example What It Means
java -ea java -enableassertions Enable assertions.
java -da java -disableassertions Disable assertions (the default behavior of Java 6).
java -ea:com.foo.Bar Enable assertions in class com.foo.Bar.
java -ea:com.foo... Enable assertions in package com.foo and any of its subpackages.
java -ea -dsa Enable assertions in general, but disable assertions in system classes.
java -ea -da:com.foo... Enable assertions in general, but disable assertions in package com.foo and any of its subpackages.
|