Results 1 to 3 of 3

Thread: PATH variable

  1. #1
    xpoferens is offline Member
    Join Date
    May 2012
    Posts
    2
    Rep Power
    0

    Default PATH variable

    Hi,

    I am new to Java. I went on oracle.com to get my Java JDK and everything, and then read the installation guide http://docs.oracle.com/javase/7/docs...ex.htmlhttp://
    I followed the instructions, adding the PATH variable value which looked something like this: C:\Program Files\Java\jdk1.7.0_04\bin

    So Now I write a simple helloworld.java program, and when i try to compile it i get this message:

    'javac' is not recognized as an internal or external command,
    operable program or batch file.

    this doesnt happen when I go to the above bin folder in cmd, but I'm not allowed to save .java files in there for some reason...

    What am I supposed to do if javac only works where it comes from and i'm supposed to have my .java's elsewhere??

    Can someone help please?? http://www.java-forums.org/images/sm...ype/(nerd).gif

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,784
    Blog Entries
    7
    Rep Power
    21

    Default Re: PATH variable

    Your PATH isn't set correctly; check each and every character and pay special attention for space characters (e.g. before the part "C:").

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    xpoferens is offline Member
    Join Date
    May 2012
    Posts
    2
    Rep Power
    0

    Default Re: PATH variable

    Quote Originally Posted by JosAH View Post
    Your PATH isn't set correctly; check each and every character and pay special attention for space characters (e.g. before the part "C:").

    kind regards,

    Jos
    Yep, somehow it didnt save when I put it in there.. careless on my part.. I thought it was a way bigger problem but it couldn't have been easier to fix =D

Similar Threads

  1. Replies: 3
    Last Post: 12-22-2011, 01:22 PM
  2. Replies: 1
    Last Post: 11-14-2011, 05:39 PM
  3. setting class-path & Library Path in ubantu
    By programmer_007 in forum Eclipse
    Replies: 18
    Last Post: 02-22-2010, 01:31 PM
  4. Java path variable's
    By Jordsk in forum New To Java
    Replies: 2
    Last Post: 04-09-2009, 03:20 AM

Tags for this Thread

Posting Permissions

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