Results 1 to 2 of 2
  1. #1
    rajivjoshi's Avatar
    rajivjoshi is offline Member
    Join Date
    May 2010
    Posts
    13
    Rep Power
    0

    Post How to set java classpath in windows.

    Hi,
    I installed JDK in c:/programfiles/java/jdk/bin. Now i made a folder in c drive c:/rajiv in this i made two folders source and classes. i dumped all java files in source folder. Now if i try to compile it is showing as javac is not an external or internal cmd. I think we need to set class path. I tried in environment variable by dont knw wht is happening.. Could any one please help me out...
    Rajiv Joshi

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    The "javac is not an external or internal cmd" message has nothing to do with the Java classpath. Rather it is a Windows message referring to the fact that the javac.exe executable cannot be found on the Windows path. This "path" is the list of directories (folders) that Windows looks in to find executables.

    This message is the first in the list of Oracle's Java Tutorial "Hello World" problems page. The suggestion they give there to the installations documentation is probably to this page: Installation Notes (or something like it). Scroll down to "4. Update the PATH variable (Optional)".

Similar Threads

  1. Replies: 1
    Last Post: 05-03-2011, 02:28 AM
  2. Windows java vs Windows AIX
    By sysp in forum New To Java
    Replies: 0
    Last Post: 01-26-2011, 05:32 AM
  3. setting classpath for java in ubuntu
    By kulangotski in forum Java Servlet
    Replies: 0
    Last Post: 01-03-2011, 02:18 AM
  4. Java classpath in Windows 7
    By luke_devon in forum New To Java
    Replies: 11
    Last Post: 09-24-2010, 01:57 PM
  5. How to configure Java mysql driver and CLASSPATH?
    By fish309 in forum New To Java
    Replies: 14
    Last Post: 07-20-2010, 09:51 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
  •