I have used a third party api htmlparser.jar and i have kept that jar file in jdk/jre/lib/ext . Then i wrote the following code in my .java file
//and much more imports
Now when i compiled the code it gave me no errors but when i tried to run the code it gave me NoClassDefFoundError . for that i checked out the .jar file and to the best of my knowledge it's ok . So why am i getting this error ?