Results 1 to 4 of 4
  1. #1
    asterisk is offline Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Default A little help here, please?

    Okay so ive downloaded java 1.6.0
    added C:\Program Files\Java\jdk1.6.0\bin to the CLASSPATH variable



    and C:\Program Files\Java\jdk1.6.0\bin to the PATH variable



    I save my programs in C:\pgm.
    I get this error:






    but when i use the set path command, it works.



    Why is that? why can't I run programs from the pgm folder without having to use the setpath command?

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

    Default

    Check for typos, because you're on the right track; b.t.w. don't set the classpath variable, i.e. that is used for completely something else.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    asterisk is offline Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Default

    I removed the path from the CLASSPATH variable and it worked! Haha thanks a bunch :D

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

    Default

    Quote Originally Posted by asterisk View Post
    I removed the path from the CLASSPATH variable and it worked! Haha thanks a bunch :D
    You're welcome of course; glad it worked; have fun and success with your Java programming.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Posting Permissions

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