tomcat - error in running java file -
i making webapp using tomcat having problems in running in windows...there java file(thread.java) runs java file(emaildownload.java) first need directory in class file stored ...i using
this.getclass().getclassloader().getresource("").getpath();
for getting class path...and running file by:
thread foo=new thread(); foo.runprocess("java mainclasses.emaildownload "+credentials[0]+" "+credentials[1]+" "+credentials[2]+" "+credentials[3]+" ");
file structure: c:\program files\apache software foundation\tomcat 8.0\webapps\mazil3.0\web-inf\classes\mainclasses\emaildownload.class , mainclasses package...
getting error:
java.lang.noclassdeffounderror: javax/mail/uidfolder @ java.lang.class.getdeclaredmethods0(native method) @ java.lang.class.privategetdeclaredmethods(unknown source) @ java.lang.class.getmethod0(unknown source) @ java.lang.class.getmethod(unknown source) @ sun.launcher.launcherhelper.validatemainclass(unknown source) @ sun.launcher.launcherhelper.checkandloadmain(unknown source) caused by: java.lang.classnotfoundexception: javax.mail.uidfolder @ java.net.urlclassloader$1.run(unknown source) @ java.net.urlclassloader$1.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source) ... 6 more
i don't understand why error coming?
interface uidfolder
belongs javax.mail package since saying noclassdeffounderror might not having javamail api in classpath .get here
Comments
Post a Comment