DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   help me set path (http://www.daniweb.com/forums/thread7298.html)

tgraves Jun 20th, 2004 11:47 pm
help me set path
 
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.

red_evolve Jun 20th, 2004 11:55 pm
Re: help me set path
 
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 ?

tgraves Jun 21st, 2004 12:38 am
Re: help me set path
 
yes, thats what I mean, with the slashes as I have written them

aarti Jul 4th, 2004 6:15 pm
Re: help me set path
 
help with the path for servlets

tgraves Jul 7th, 2004 10:03 pm
Re: help me set path
 
well i got my path working in any case

Rajnesh Feb 23rd, 2006 10:50 pm
Re: help me set path
 
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...

Quote:

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.


peter_budo Feb 28th, 2006 10:31 am
Re: help me set path
 
Quote:

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

jeetulak Oct 22nd, 2007 2:24 am
Re: help me set path
 
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...

masijade Oct 22nd, 2007 4:07 am
Re: help me set path
 
Start your own thread, but that "error" is always that the path is not set (not classpath, path).

azhar.shamsher Oct 22nd, 2007 5:03 am
Re: help me set path
 
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%;


All times are GMT -4. The time now is 5:03 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC