Results 21 to 29 of 29
- 05-03-2012, 08:03 PM #21
Member
- Join Date
- May 2012
- Posts
- 4
- Rep Power
- 0
Re: javac is not recognized as an internal or external command error
I think I did this, but I am still getting the same error. Here is what my console prints when I type PATH (you asked for this further down when someone was having trouble:
You can also see the error messages. I kept trying to run the program after doublechecking to be sure I had set the path properly. Any help is appreciated!Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\User>\Documents\Eclipse Programs
The system cannot find the path specified.
C:\Users\User>cd C:\\Users\User\Documents\Eclipse Programs
C:\Users\User\Documents\Eclipse Programs>javac HelloApp.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Documents\Eclipse Programs>javac HelloApp.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Documents\Eclipse Programs>javac HelloApp.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Documents\Eclipse Programs>javac HelloApp.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\User\Documents\Eclipse Programs>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\Sys tem32\Wbem;C:\Windows\System32
\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program F
iles\Intel\DMIX;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WI
DCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Fi
les\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\NTRU Cryptosystems
\NTRU TCG Software Stack\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Softw
are Stack\bin\;C:\Program Files\Dell\Dell Data Protection\Access\Advanced\Wave\G
emalto\Access Client\v5\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLSha
red\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program
Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Comm
on Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\Audio
Core\;C:\Program Files (x86)\Calibre2\;C:\Program Files\Intel\WiFi\bin\;C:\Progr
am Files\Common Files\Intel\WirelessCommon\
C:\Users\User\Documents\Eclipse Programs>
I figure I can start using Eclipse or something instead and possibly bypass this problem, but it seems best to learn how to write from scratch, if that makes sense, but I'm open to suggestions on that as well.
Edited to add: I just looked over what I pasted, and I do NOT see the path that I set in there. Which leads me to think I did not do so correctly. I will go look at that again.Last edited by Nic32; 05-03-2012 at 08:05 PM. Reason: add info at bottom.
- 05-03-2012, 08:11 PM #22
Re: javac is not recognized as an internal or external command error
In the PATH variable, where is the path to the JDK's bin folder? That's the location of the javac.exe program.
If you don't understand my response, don't ignore it, ask a question.
- 05-03-2012, 08:15 PM #23
Member
- Join Date
- May 2012
- Posts
- 4
- Rep Power
- 0
Re: javac is not recognized as an internal or external command error
I typed this in the System Variable: Path edit box, before everything else that was in there. I put a semi-colon after it:
C:\Program Files (x86)\Java\jdk1.7.0_03\bin\
Looking at that, I don't see where I put "User" though, and it seems like that would have to be there. Ugh, I'm feeling way dumb now!
- 05-03-2012, 08:18 PM #24
Re: javac is not recognized as an internal or external command error
Does that path show in the long list of paths shown in post#21 when you enter: path in the command prompt window?
If you don't understand my response, don't ignore it, ask a question.
- 05-03-2012, 08:25 PM #25
Member
- Join Date
- May 2012
- Posts
- 4
- Rep Power
- 0
Re: javac is not recognized as an internal or external command error
This is pasted from my System Variables: Path textbox:
This is a repaste of what my command prompt shows when I type "path":C:\Program Files (x86)\Java\jdk1.7.0_03\bin\;%SystemRoot%\system32; %SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROO T%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files\Intel\DMIX;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Dell\Dell Data Protection\Access\Advanced\Wave\Gemalto\Access Client\v5\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\AudioCore\;C:\Program Files (x86)\Calibre2\
When I type "path" in the command window, I think it has some of the same stuff that comes up in the User Variables: Path textbox, which I'm also pasting (I added the JDK bin to that one as well b/c I wasn't sure if I was supposed to set the path to user variables or system variables):C:\Users\User\Documents\Eclipse Programs>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\Sys tem32\Wbem;C:\Windows\System32
\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program F
iles\Intel\DMIX;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WI
DCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin\;C:\Program Fi
les\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\NTRU Cryptosystems
\NTRU TCG Software Stack\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Softw
are Stack\bin\;C:\Program Files\Dell\Dell Data Protection\Access\Advanced\Wave\G
emalto\Access Client\v5\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLSha
red\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program
Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Comm
on Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\Audio
Core\;C:\Program Files (x86)\Calibre2\;C:\Program Files\Intel\WiFi\bin\;C:\Progr
am Files\Common Files\Intel\WirelessCommon\
So, it looks like "path" when I type it into the command prompt is not going to the right spot?C:\Program Files (x86)\Java\jdk1.7.0_03\bin\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\
- 05-03-2012, 08:37 PM #26
Re: javac is not recognized as an internal or external command error
Sorry, I have no more to say about it. You know what needs to be done. Its a fight between you and the OS
I use a batch file or a full path to the compiler when I compile:
D:\Java\jdk1.6.0_29\bin\javac.exe -Xlint TestCode7.javaIf you don't understand my response, don't ignore it, ask a question.
- 05-03-2012, 08:38 PM #27
Member
- Join Date
- May 2012
- Posts
- 4
- Rep Power
- 0
Re: javac is not recognized as an internal or external command error
Cool, thanks Norm. :)
- 05-04-2012, 09:34 AM #28
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: javac is not recognized as an internal or external command error
You need to close your command terminal and reopen it.
It only loads the PATH values when it starts up, so any changes after you have started it will not appear.Please do not ask for code as refusal often offends.
- 06-10-2012, 03:48 AM #29
Member
- Join Date
- Jun 2012
- Posts
- 1
- Rep Power
- 0
Re: javac is not recognized as an internal or external command error
I am not a Java expert but I had the same issue and found this thread when trying to get help. Then I found this is the fix: in the "Environment Variables" dialog box, trying to edit the PATH variable in the lower portion labeled as "System variables" instead of the upper portion labeled as "User variables for xxxx". Or edit PATH for both portion just to make sure. That fixes my puzzle!
Similar Threads
-
'javac' is not recognized as an internal or external command...HELP!
By taymilll in forum New To JavaReplies: 25Last Post: 06-23-2012, 11:30 AM -
'Javac' is not recognized as an internal or external command or batch file
By FinalFatexX in forum New To JavaReplies: 19Last Post: 11-27-2010, 12:31 AM -
javac not recognized as an internal or external command
By kotoko in forum New To JavaReplies: 28Last Post: 10-26-2010, 04:39 AM -
javac is not recognized as an internal or external command... and vista
By tsaund in forum New To JavaReplies: 13Last Post: 09-17-2009, 07:56 AM -
'javac' is not recognized as an internal or external command
By sam_1032002@btopenworld.c in forum New To JavaReplies: 3Last Post: 10-18-2008, 02:40 AM


2Likes
LinkBack URL
About LinkBacks

Bookmarks