help me set path

Reply

Join Date: Jun 2004
Posts: 6
Reputation: tgraves is an unknown quantity at this point 
Solved Threads: 0
tgraves tgraves is offline Offline
Newbie Poster

help me set path

 
0
  #1
Jun 20th, 2004
I have changed the Path Environment Variable for Windows Command Prompt to:

C:\j2sdk1.4.2_04\bin

so why, when I try to run javac while in the code folder directory, do I still get the error message

"javac is not recognized as an internal..."

I was forced to put the path info in at the command prompt before the .java file would compile.

Help.
Reply With Quote Quick reply to this message  
Join Date: Jun 2003
Posts: 313
Reputation: red_evolve is on a distinguished road 
Solved Threads: 0
red_evolve's Avatar
red_evolve red_evolve is offline Offline
Posting Whiz

Re: help me set path

 
0
  #2
Jun 20th, 2004
Greetings.
Errr, do you mean that you have set the path in the System Properties?
With Variable: Path
and Value: c:/j2sdk1.4.2_04/bin ?
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 6
Reputation: tgraves is an unknown quantity at this point 
Solved Threads: 0
tgraves tgraves is offline Offline
Newbie Poster

Re: help me set path

 
0
  #3
Jun 21st, 2004
yes, thats what I mean, with the slashes as I have written them
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 1
Reputation: aarti is an unknown quantity at this point 
Solved Threads: 0
aarti aarti is offline Offline
Newbie Poster

Re: help me set path

 
0
  #4
Jul 4th, 2004
help with the path for servlets
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 6
Reputation: tgraves is an unknown quantity at this point 
Solved Threads: 0
tgraves tgraves is offline Offline
Newbie Poster

Re: help me set path

 
0
  #5
Jul 7th, 2004
well i got my path working in any case
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 24
Reputation: Rajnesh is an unknown quantity at this point 
Solved Threads: 0
Rajnesh Rajnesh is offline Offline
Newbie Poster

Re: help me set path

 
0
  #6
Feb 23rd, 2006
First try to locate te bin folder from the windows explorer, and then copy the path to ur environment variable, which you can get by right clicking on My Computer Icon and then to Advanced Tab and then to Environment Variable...
But i think if you install the jre or jdk for jsdk it by default reallocates ur path to c:\\Program Files\Java\j2sdk1.4.2_04\bin

check this out...

Regards...

Originally Posted by tgraves
I have changed the Path Environment Variable for Windows Command Prompt to:

C:\j2sdk1.4.2_04\bin

so why, when I try to run javac while in the code folder directory, do I still get the error message

"javac is not recognized as an internal..."

I was forced to put the path info in at the command prompt before the .java file would compile.

Help.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,176
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 479
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: help me set path

 
0
  #7
Feb 28th, 2006
Originally Posted by aarti
help with the path for servlets
I'm runnning Tomcat Appache 5.5.15 wth JAVA 1.5.06. To get servlets run on my laptop I only copied and past servlet-api.jar & jsp-api.jar into following directory
  1. C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext
which is where java is installed

you can find this jar files in tomcat as follow
  1. C:\Tomcat 5.5\common\lib

and to setting path for java, don't forget put on end of path semicolum " ; " or some pc refuse to work with java
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1
Reputation: jeetulak is an unknown quantity at this point 
Solved Threads: 0
jeetulak's Avatar
jeetulak jeetulak is offline Offline
Newbie Poster

Re: help me set path

 
0
  #8
Oct 22nd, 2007
hi....im working with tomcat... to run servlets....i cant execute the javac command in dos ....what do i do??? java is installed...i even gave the path to where its installed...i even changed yhe system properties... but it says javac is not recognised as internal and external command...
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,327
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 248
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: help me set path

 
0
  #9
Oct 22nd, 2007
Start your own thread, but that "error" is always that the path is not set (not classpath, path).
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1
Reputation: azhar.shamsher is an unknown quantity at this point 
Solved Threads: 0
azhar.shamsher azhar.shamsher is offline Offline
Newbie Poster

Re: help me set path

 
0
  #10
Oct 22nd, 2007
Just go at command prompt and check whether ur jdk is in programme files, if it is programe
file then set path
c:\set path=C:\programe files\j2sdk1.4.2_04\bin;%path%;
or if not in prog files then
c:\set path=C:\j2sdk1.4.2_04\bin;%path%;
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC