Results 1 to 8 of 8
  1. #1
    sunshine39 is offline Member
    Join Date
    Sep 2008
    Location
    Florida
    Posts
    7
    Rep Power
    0

    Default [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

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,390
    Rep Power
    25

    Default

    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:

    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\;
    Ignore the line breaks caused by the page being formatted.

  3. #3
    sunshine39 is offline Member
    Join Date
    Sep 2008
    Location
    Florida
    Posts
    7
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    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.


    okay, so should I add the path of java to the Path variable that is already in my system. I have vista so it is Path, not PATH. Not replace it.

  4. #4
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    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

  5. #5
    sunshine39 is offline Member
    Join Date
    Sep 2008
    Location
    Florida
    Posts
    7
    Rep Power
    0

    Default

    Quote Originally Posted by fishtoprecords View Post
    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
    thanks...I believe I finally did it.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  7. #7
    Tobi is offline Member
    Join Date
    Mar 2009
    Posts
    1
    Rep Power
    0

    Default 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

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Replies: 28
    Last Post: 10-26-2010, 04:39 AM
  2. Replies: 6
    Last Post: 07-30-2008, 03:50 AM
  3. javac DOS
    By rdunne in forum New To Java
    Replies: 3
    Last Post: 01-01-2008, 11:49 AM
  4. Unable to execute command line command in java
    By LordSM in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 12:23 AM
  5. Replies: 4
    Last Post: 07-20-2007, 04:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •