Results 1 to 3 of 3
- 06-19-2012, 06:54 AM #1
Member
- Join Date
- Jul 2010
- Posts
- 38
- Rep Power
- 0
- 06-19-2012, 07:13 AM #2
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 696
- Rep Power
- 6
Re: How To set A ClassPath For Servlet.
You can use the -cp or -classpath argument to tell the java compiler where your servlet-api.jar is located. An example will be like:
If you want to make it permanent in your terminal here is a tutorial about setting the classpath: PATH and CLASSPATH (The Java™ Tutorials > Essential Classes > The Platform Environment)Java Code:javac -cp .;/path/to/servlet-api.jar domain.servlet.SomeServlet.java
Website: Learn Java by Examples
- 06-19-2012, 07:43 AM #3
Member
- Join Date
- Jul 2010
- Posts
- 38
- Rep Power
- 0
Similar Threads
-
javax.servlet.ServletException Servlet Execution threw an Exception. PLEASE HELP***
By mkjp2011 in forum Advanced JavaReplies: 1Last Post: 08-23-2011, 11:12 AM -
what is runtime classpath and what is designtime classpath?
By LongTTH in forum New To JavaReplies: 1Last Post: 05-03-2011, 02:28 AM -
Servlet CLASSPATH for Apache
By fishman in forum Java ServletReplies: 3Last Post: 07-02-2010, 02:52 PM -
Servlet - apache tomcat/glassfish server shuts down on servlet usage
By StewS in forum Java ServletReplies: 1Last Post: 12-02-2008, 12:23 AM -
javax.servlet.ServletException: Wrapper cannot find servlet class util.t2
By osval in forum Advanced JavaReplies: 1Last Post: 08-07-2007, 03:47 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks