User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 426,134 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,755 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 16787 | Replies: 9
Reply
Join Date: Jun 2004
Posts: 6
Reputation: tgraves is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
tgraves tgraves is offline Offline
Newbie Poster

help me set path

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2003
Location: Malaysia
Posts: 313
Reputation: red_evolve is on a distinguished road 
Rep Power: 6
Solved Threads: 0
red_evolve's Avatar
red_evolve red_evolve is offline Offline
Posting Whiz

Re: help me set path

  #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  
Join Date: Jun 2004
Posts: 6
Reputation: tgraves is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
tgraves tgraves is offline Offline
Newbie Poster

Re: help me set path

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

Re: help me set path

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

Re: help me set path

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

Re: help me set path

  #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  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,453
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 11
Solved Threads: 296
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: help me set path

  #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
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
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)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Oct 2007
Posts: 1
Reputation: jeetulak is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jeetulak's Avatar
jeetulak jeetulak is offline Offline
Newbie Poster

Question Re: help me set path

  #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  
Join Date: Feb 2006
Posts: 1,460
Reputation: masijade is just really nice masijade is just really nice masijade is just really nice masijade is just really nice masijade is just really nice 
Rep Power: 9
Solved Threads: 131
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Virtuoso

Re: help me set path

  #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  
Join Date: Oct 2007
Posts: 1
Reputation: azhar.shamsher is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
azhar.shamsher azhar.shamsher is offline Offline
Newbie Poster

Re: help me set path

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 4:38 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC