Results 1 to 4 of 4
  1. #1
    pateldpk is offline Member
    Join Date
    Apr 2012
    Posts
    27
    Rep Power
    0

    Default Error with javac and java command

    I have set my path variable to E:\J2EE\Java\jdk1.7.0\bin &
    CLASSPATH to E:\J2EE\Java\jdk1.7.0\bin

    jdk1.7.0 installation directory =E:\J2EE\Java\jdk1.7.0


    Error with javac and java command-error.jpg

  2. #2
    arielb is offline Member
    Join Date
    Jan 2012
    Location
    Panamá
    Posts
    41
    Rep Power
    0

    Default Re: Error with javac and java command

    test with java -version for see that is watching.
    is possible that is finding other route in the path variable.

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

    Default Re: Error with javac and java command

    Remove that CLASSPATH variable; its value doesn't make any sense.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    pateldpk is offline Member
    Join Date
    Apr 2012
    Posts
    27
    Rep Power
    0

    Default Re: Error with javac and java command

    Hey friends now its working perfect... i don't know what was the problem it was.... i just removed all the variables then i set only path variable... still was getting same could not open error... my jdk installation directory in E drive i have set my path variable to E:\J2EE\Java\jdk1.7.0\bin .. Then why java is searching in C:\Program Files as u shown above image could not open error.... now its working fine automatically but i didn't understand the error.... help me if u guyys know.. thank you..

Similar Threads

  1. Replies: 28
    Last Post: 06-10-2012, 03:48 AM
  2. -jGRASP wedge2 error: command "javac" not found.
    By ncneeds in forum New To Java
    Replies: 0
    Last Post: 09-28-2011, 09:21 PM
  3. 'javac' is not recognized as an internal command
    By Infected_ in forum New To Java
    Replies: 3
    Last Post: 10-18-2010, 03:04 AM
  4. javac is not recognized command...
    By javastudent87 in forum New To Java
    Replies: 6
    Last Post: 07-30-2010, 05:50 AM
  5. javac command not recognized
    By sunshine39 in forum New To Java
    Replies: 7
    Last Post: 03-04-2009, 03:54 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
  •