Things worked yesterday , I dont know what I did to break them
I'm trying to compile servlets , connect to MySQL DBs etc . Problem is this.
I have a HW.java
file which just prints Hello World ,
I compile it and run it , it works fine
Now say I need to use Servlet API methods in it So I do this
export CLASSPATH="/Users/User/tomcat.....servlet...api"
now when I try to run (compilation works perfectly ) after exporting CLASSPATH I get this
Could not find or load main class HW
Not only Servlet Programs , even a Hello World program doesnt run Unless I CLear CLASSPATH by using export CLASSPATH=
Things worked fine before dont know what I broke , Please help