Results 1 to 4 of 4
  1. #1
    pradvaar is offline Member
    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    Default I cant run java files in my windows7 even after changing class path....Please help

    I cant run java in my laptop..when i type "javac" command in cmd...its popping like "javac is not recognized as an internal or external command"....I ve already changed my path to CLASSPATH "C:\Program Files\Java\jdk1.7.0_09"....please help

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: I cant run java files in my windows7 even after changing class path....Please hel

    you need to change your system's path, not its classpath.

  3. #3
    pradvaar is offline Member
    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    Default Re: I cant run java files in my windows7 even after changing class path....Please hel

    I have added a variable "path" in user variables and given its value as C:\Program Files\Java\jdk1.7.0_09 and in system variables i added a variable CLASSPATH and given its value as C:\Program Files\Java\jdk1.7.0_09\lib......but still its not workin....please help

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: I cant run java files in my windows7 even after changing class path....Please hel

    Have you checked to see where does the javac file resides? I believe its in the bin path of your jdk, and your path statement doesn't appear to include the bin subdirectory. Don't set your system's classpath, as you shouldn't be doing this with Java. Instead use the Javac and Java -cp switch when calling these programs.

Similar Threads

  1. Problem with my Java class path
    By Slyfer in forum New To Java
    Replies: 1
    Last Post: 11-16-2011, 04:34 PM
  2. setting class-path & Library Path in ubantu
    By programmer_007 in forum Eclipse
    Replies: 18
    Last Post: 02-22-2010, 12:31 PM
  3. URGENT: How to include a library in Java class path?
    By gsmurthy30 in forum New To Java
    Replies: 3
    Last Post: 09-15-2008, 04:58 PM
  4. URGENT: How to include a library in Java class path?
    By gsmurthy30 in forum Advanced Java
    Replies: 1
    Last Post: 09-15-2008, 08:39 AM
  5. Replies: 2
    Last Post: 07-30-2007, 08:55 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
  •