Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Old 04-07-08, 05:36 PM   #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 sushma singh is on a distinguished road
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...........
sushma singh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-08, 05:58 PM   #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 JavaLang is on a distinguished road
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.
JavaLang is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-08, 06:33 PM   #18 (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 sushma singh is on a distinguished road
Re: exception in thread main

ok.........i've downloaded eclips but don no how to use it can u tell me.............
sushma singh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT +6.5. The time now is 02:40 PM.





Search Engine Optimization by vBSEO 3.1.0