java.lang.ClassNotFoundException: javax.servlet.Servlet -


i receive exception when try run jar file

java.lang.classnotfoundexception: javax.servlet.servlet

the file servlet-api-2.5-6.1.14.jar lives in same dir jar im trying run.

servlet-api-2.5-6.1.14.jar contains class javax.servlet.servlet

any ideas ?

thanks

you need include path in class-path entry of manifest.mf file of jar you're running. assuming both jar's in same folder:

class-path: servlet-api-2.5.6.1.14.jar 

i wonder how it's useful have servlet api dependeny of plain java application.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -