I am running this code through command in jboss server.
I compiled using javac -cp $CLASSPATH: and then the lib path and class also got compiled without any error but still it gives the same error.
So please hekp me out
i have fixed the above problem.Here problem with Classloader. we can overcome this by placing jar file in web-inf/lib/ext folder. Probably we could not seen this.It is the secondary loaction for classloader to load the jars or third party files. further deatils go through this url: