943,911 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 40429
  • Java RSS
You are currently viewing page 1 of this multi-page discussion thread
Jun 20th, 2004
0

help me set path

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tgraves is offline Offline
6 posts
since Jun 2004
Jun 20th, 2004
0

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 ?
Reputation Points: 53
Solved Threads: 1
Posting Whiz
red_evolve is offline Offline
313 posts
since Jun 2003
Jun 21st, 2004
0

Re: help me set path

yes, thats what I mean, with the slashes as I have written them
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tgraves is offline Offline
6 posts
since Jun 2004
Jul 4th, 2004
0

Re: help me set path

help with the path for servlets
Reputation Points: 10
Solved Threads: 1
Newbie Poster
aarti is offline Offline
1 posts
since Jul 2004
Jul 7th, 2004
0

Re: help me set path

well i got my path working in any case
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tgraves is offline Offline
6 posts
since Jun 2004
Feb 23rd, 2006
0

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.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Rajnesh is offline Offline
24 posts
since Jan 2006
Feb 28th, 2006
0

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
Java Syntax (Toggle Plain Text)
  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
Java Syntax (Toggle Plain Text)
  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
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 873
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004
Oct 22nd, 2007
0

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...
Reputation Points: 10
Solved Threads: 1
Newbie Poster
jeetulak is offline Offline
1 posts
since Oct 2007
Oct 22nd, 2007
0

Re: help me set path

Start your own thread, but that "error" is always that the path is not set (not classpath, path).
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Oct 22nd, 2007
0

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%;
Reputation Points: 10
Solved Threads: 1
Newbie Poster
azhar.shamsher is offline Offline
1 posts
since Oct 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in Java Forum Timeline: Web content filtering (need a help)
Next Thread in Java Forum Timeline: table is not displaying.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC