Results 1 to 2 of 2
  1. #1
    lashu is offline Member
    Join Date
    Aug 2009
    Posts
    1
    Rep Power
    0

    Default how to set the class path

    Hi all,

    I have written the simple java program to print the data, but i am not able to run it.

    its giving an error javac is not recognized as an external or internal command

    so for this i think the class path is not set properly

    or tell me the procedure from begging how to run the java programs

  2. #2
    dlorde is offline Senior Member
    Join Date
    Jun 2008
    Posts
    339
    Rep Power
    7

    Default

    No, if the executable can't be found, it's the PATH that's the problem. You need to add the Java bin directory to the system path.

    For example, on my Windows XP system PATH, the Java entry looks like this:

    C:\dev\Java\jdk1.5.0_12\bin;

    You might also like to set JAVA_HOME to the Java directory (e.g. C:\dev\Java\jdk1.5.0_12).
    Last edited by dlorde; 08-21-2009 at 01:09 PM.

Similar Threads

  1. Cannot find class in same path.
    By ribbs2521 in forum New To Java
    Replies: 4
    Last Post: 05-07-2009, 05:25 PM
  2. Load class file which resides in local path c:\
    By praveen.kb in forum Advanced Java
    Replies: 2
    Last Post: 08-12-2008, 01:55 PM
  3. trying to get class name & path
    By sandor in forum New To Java
    Replies: 4
    Last Post: 08-12-2008, 01:38 PM
  4. Setting up class path for Eclipse
    By tsantana in forum Eclipse
    Replies: 1
    Last Post: 04-07-2008, 07:05 PM
  5. Log4J.jar in class path
    By eva in forum New To Java
    Replies: 0
    Last Post: 01-02-2008, 06:39 PM

Posting Permissions

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