Reputation: 566
I just started developing online applications using Servlets and JSP. As you may know we need a doPost method which receives HttpServletRequest req,HttpServletResponse res) parameters.
My question is the following. I understand I need to import the javax.servlet and javax.servlet.http.* package in order for this to work. I remember once a this crazy teacher who told me I could modify my jdk/jre/lib folder and add those external jar which I would use a lot in order to forget about changing the class path every time I compile a project. Those anyone know how to do this? I already copy the servlet-api.jar into the lib folder but nothing happens..
Thanks
Upvotes: 3
Views: 15044
Reputation: 687
For external JARs put them in the ext folder. For example. If you are using 64bit JDK.
C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext
If you are using 32bit version of JDK the path may look like this.
C:\Program Files (x86)\Java\jdk1.8.0_31\jre\lib\ext
Upvotes: 7