I am using following command for enabling assertion in my code, which i have saved using Asserttest.java file.
java -enableassertions Asserttest.java
But i am getting the following compilation error:
Exception in thread "main" java.lang.NoClassDefFoundError: Asserttest/java
Please tell me the right command. Thanks in advance.