Results 1 to 2 of 2
  1. #1
    makeawish is offline Member
    Join Date
    Oct 2010
    Rep Power

    Question Java + Windows 7

    I have installed Java onto the computer running windows 7.

    In advanced > System Settings > Environment Variables > PATH

    This is what I have added:

    C:\Program Files (x86)\Java\jre6\bin
    In ClassPath I have added the same thing.

    In CMD, I cannot seem to compile anything. I get the error: 'javac' is not recognized as an internal or external command, operable program or batch file.

    Please can someone tell me how to fix this so I can compile java files?

    Also, I accidentally deleted what was already inside ClassPath and Path, I'd appreciate if someone could tell me what were the default values! To enter a new path do I separate it with a semi-colon?

    Thank you.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power


    Quote Originally Posted by makeawish View Post
    In ClassPath I have added the same thing.
    That is definitely incorrect. For now don't define an environment variable 'classpath'. Set your 'path' variable to the directory where your javac.exe file etc. are stored. I don't know what was in your path variable before so I can't help you there.

    kind regards,

    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Integrate Java with Windows
    By Tyron in forum Advanced Java
    Replies: 4
    Last Post: 11-09-2010, 09:10 AM
  2. Java classpath in Windows 7
    By luke_devon in forum New To Java
    Replies: 11
    Last Post: 09-24-2010, 01:57 PM
  3. java on windows 64
    By JoelOFH in forum New To Java
    Replies: 1
    Last Post: 01-27-2010, 06:27 AM
  4. Java IDE for windows 7
    By Implode in forum New To Java
    Replies: 3
    Last Post: 09-17-2009, 08:16 AM
  5. Help with windows in java
    By lenny in forum AWT / Swing
    Replies: 1
    Last Post: 08-07-2007, 06:22 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