Results 1 to 8 of 8
Thread: javac command not recognized
- 09-04-2008, 10:47 PM #1
Member
- Join Date
- Sep 2008
- Location
- Florida
- Posts
- 7
- Rep Power
- 0
[SOLVED]javac command not recognized
Okay, I have been at this for a while now and I officially need help. I am taking a JAVA class and just starting. I have gone throught he sun tutorial several times and it hasn't worked. I am still recieving the error
'javac' is not recognized as an internal or external....etc.
I know that this is a common problem that has been addressed on the tutorial, but I am still not understanding after reseting my enviornmental variable Path on my system as to why it is not working. Do I need to save my files in a certain place? I am a newbie at this so please help! I am pulling my hair out after a few days of researching this problem.
Thank you very much
[SOLVED]Last edited by sunshine39; 09-08-2008 at 06:20 AM. Reason: solved
- 09-04-2008, 11:41 PM #2
If your OS is not finding the javac command, you need to be sure the \bin folder for the JDK is on the PATH.
There are several posts here about how to set your PATH variable. Search should find them.
Here's what my PATH looks like on WinXP:
Ignore the line breaks caused by the page being formatted.
C:\Documents and Settings\Owner>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys tem32\Wbem;C:\Program Files\Java\jdk1.5.0_04\bin;C:\Perl\bin;C:\BatchFil es;C:\Program Files\Support Tools\;
- 09-04-2008, 11:47 PM #3
Member
- Join Date
- Sep 2008
- Location
- Florida
- Posts
- 7
- Rep Power
- 0
- 09-05-2008, 07:11 AM #4
yes, add the Java directory to the tail of the existing Path/path/PATH statement in your control panel's "environment" section. Altho Vista may have moved it, I'm an XP guy when I'm not using Linux
- 09-08-2008, 06:19 AM #5
Member
- Join Date
- Sep 2008
- Location
- Florida
- Posts
- 7
- Rep Power
- 0
- 09-08-2008, 07:10 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
If you are clever, same thing can be done using autoexec.bat file.
- 03-03-2009, 12:19 PM #7
Member
- Join Date
- Mar 2009
- Posts
- 1
- Rep Power
- 0
Thanks!
Had to register just to say thank you for posting the Q and to those who answered in. I was convinced I had the path set...but seems I didn't! So...
Thanks to all
Tobi
- 03-04-2009, 03:54 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
It's pleasure to help you Tobi, just not for me for all members in the forum. Keep going with our community. I'm sure you can learn a lot. :)
Similar Threads
-
javac not recognized as an internal or external command
By kotoko in forum New To JavaReplies: 28Last Post: 10-26-2010, 04:39 AM -
'cmd' is not recognized as an internal or external command
By thelukestir in forum New To JavaReplies: 6Last Post: 07-30-2008, 03:50 AM -
javac DOS
By rdunne in forum New To JavaReplies: 3Last Post: 01-01-2008, 11:49 AM -
Unable to execute command line command in java
By LordSM in forum New To JavaReplies: 1Last Post: 08-08-2007, 12:23 AM -
type javac on the command line from any directory of your machine
By silvia in forum New To JavaReplies: 4Last Post: 07-20-2007, 04:18 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks