Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-12-2006, 07:43 PM   #1 (permalink)
True Techie
 
nithinks's Avatar
 
Join Date: Apr 2005
Posts: 260
Question URGENT-Executing JAVA programs


hello members..

I have written some important programs(mainly servlet) in java.. i have installed JDK5.0 and JRE (which was provided in digit CD) but it gives the error like
for.. import java.io.*

and for HttpServlet classes

and i need a program called servlet.. so.. what can i do?
thanx
__________________
http://www.mytechyard.com/
nithinks is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 11-12-2006, 09:15 PM   #2 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default Re: URGENT-Executing JAVA programs

Did u set the ENVIRONMENT Variable for Java? If not then do as following:

1.) Type sysdm.cpl in RUN dialog box.
2.) Goto Advanced tab and click onEnvironment Variables.
3.) In System Variables, append following in PATH variable:

C:\Program Files\Java\jdk1.5.0_06\bin

Change the location of the folder acc. to ur system

PS: Also separate this entry with other existing entries by using semi-colon ;
__________________
:arrow: http://www.AskVG.com/
Vishal Gupta is offline  
Old 11-12-2006, 09:57 PM   #3 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Default Re: URGENT-Executing JAVA programs

@nithinks , Which IDE you use for Java? For Servlets to compile successfully, the file
servlet.jar must be included in the CLASSPATH variable. Also use a good IDE like
JCreator Pro v4.0. Get it from here or use NetBeans (www.netbeans.org) or Eclipse ( www.eclipse.org )

For eg.,

To compile :

Javac -cp .; <path to servlet.jar>
__________________
* Imagination is more important than knowledge.
-Albert Einstein
JGuru is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by clinton
- by Krow

Advertisement




All times are GMT +5.5. The time now is 11:49 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2