can not use JAVAC command

Discussion in 'Programming' started by joujoba, Oct 29, 2010.

  1. #1
    C:\>javac
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    Code (markup):
    hello

    i tried using the javac command: javac test.java
    but i got this error above.

    i have set my path correctly to: C:\Program Files\Java\jre6\bin
    (by the way in there there is no file called javac)

    but still it doesn't work.
    do i have to install java_ee_sdk-5_07-jdk-6u16-windows.exe?
     
    joujoba, Oct 29, 2010 IP
  2. anilkumar2010

    anilkumar2010 Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    Check the Directory C:\Program Files\Java, if this exist.
    Check what JRE are installed, you can findout using folder contains in this Java Folder and set path to the bin of that.

    If there are no Java Folder or no JRE folder inside it you need to install the
    java_ee_sdk-5_07-jdk-6u16-windows.exe.
     
    anilkumar2010, Oct 29, 2010 IP
  3. Blue Link Media

    Blue Link Media Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You need to install Java Development Kit ( JDK ).
     
    Blue Link Media, Oct 30, 2010 IP
  4. achuthan

    achuthan Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    check whether you have jdk installed in your system. if yes, set the path to c:\program files\java\jdk\bin
     
    achuthan, Nov 3, 2010 IP
  5. joujoba

    joujoba Peon

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    solved i just needed jdk :)
     
    joujoba, Nov 8, 2010 IP