| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#16 (permalink) |
|
Junior Member
Join Date: Jul 2008
Posts: 3
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
|
Re: exception in thread main
thanx........but it will be very useful; for me if u will describe step-2 in detail.......wat mean by.........updating CLASSPATH...........
|
|
|
|
|
|
#17 (permalink) |
|
Junior Member
Join Date: Jul 2007
Posts: 22
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
|
Re: exception in thread main
Setting the classpath
control panel -------> System ---------->Advanced ------>Environment Variables -------->user variables ------> here you will find a CLASSPATH varaible,update it with the path of your servlet-api.jar. servlet-api.jar is used by the java compiler to compile the servlet files so u need to include them in your classpath. NOTE : This is only necessary when you are manually comipling the servlet classes using command prompt. You can very well use IDE's like NETBEANS or ECLIPSE. if you use these IDE's for developing your web application it will be very easy.and there is no need to set the classpath.and also you will get the default directory stucture for web application. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help for Exception in thread "main" java.lang.NullPointerException | arumahi | JAVA Technologies | 3 | 11-04-07 01:51 AM |
| what are exceptions? | mounika | ORACLE , SQL SERVER , SYBASE & Others | 13 | 01-03-07 04:49 PM |
| What will happen to the Exception object after exception handling | preethisingh | Java Interview / Technical Questions | 0 | 23-01-07 01:25 PM |
| java notes | naga | JAVA Technologies | 5 | 22-09-06 10:30 PM |
| Java Contest-30 | keerthi | JAVA Technologies | 3 | 01-06-06 11:31 AM |