Results 1 to 7 of 7
  1. #1
    javastudent87 is offline Member
    Join Date
    Jul 2010
    Posts
    7
    Rep Power
    0

    Post javac is not recognized command...

    getting the error on tyring to compile simple java code...
    how to set path to javac & and where to find jdk is installed

  2. #2
    arun9683 is offline Member
    Join Date
    Jun 2010
    Location
    Bangalore,India
    Posts
    70
    Rep Power
    0

    Default

    You need set the class path.

    Right click on the my computer ==> Advanced tab ==> Environment variables.

    You can set the class path here.
    Arun K R,Bangalore,India
    :)

  3. #3
    javastudent87 is offline Member
    Join Date
    Jul 2010
    Posts
    7
    Rep Power
    0

    Post

    thnks 4 concern...
    i know i need to set class path which shoud be the path of jdk's bin directory..
    but i don't have jdk folder in C:\Program Files\Java , where should i find it?

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

    Default

    Quote Originally Posted by javastudent87 View Post
    thnks 4 concern...
    i know i need to set class path which shoud be the path of jdk's bin directory..
    but i don't have jdk folder in C:\Program Files\Java , where should i find it?
    Forget about the classpath variable; the previous answer is rubbish; first install a jdk (from Sun most likely); then set your path (not your classpath) variable to the bin subdirectory of your jdk because that's where your executable compiler and other tools are stored.

    kind regards,

    Jos

  5. #5
    javastudent87 is offline Member
    Join Date
    Jul 2010
    Posts
    7
    Rep Power
    0

    Default

    i'm very new to java .. pls tell me is it mean that jdk is installed
    when i get java version by typing the command:
    >java -version

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

    Default

    Quote Originally Posted by javastudent87 View Post
    i'm very new to java .. pls tell me is it mean that jdk is installed
    when i get java version by typing the command:
    >java -version
    Did you install the jdk? Search for javac.exe and show us the directory where it is stored; that directory should be in your path variable.

    kind regards,

    Jos

  7. #7
    javastudent87 is offline Member
    Join Date
    Jul 2010
    Posts
    7
    Rep Power
    0

    Default

    thnks for reply.
    i've searched for javac.exe , its not found it means jdk is not installed on my m/c..

Similar Threads

  1. Replies: 28
    Last Post: 10-26-2010, 04:39 AM
  2. Replies: 13
    Last Post: 09-17-2009, 07:56 AM
  3. javac command not recognized
    By sunshine39 in forum New To Java
    Replies: 7
    Last Post: 03-04-2009, 03:54 AM
  4. Replies: 3
    Last Post: 02-28-2009, 04:43 PM
  5. 'javac' is not recognized as an internal or external command
    By sam_1032002@btopenworld.c in forum New To Java
    Replies: 3
    Last Post: 10-18-2008, 02:40 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
  •