#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    181
    Rep Power
    14

    Is I set classpath correct


    I'm read Installation Note jdk 1.4 for win in sun website. but it not explain about classpath.

    I'm install classpath on windows.

    Some book suggess to set classpath to c:\jdk1.4\jre\lib; (Is it true ?)
    Some book suggess to set to directory that compile java code such as c:\javaprogram;

    When I not set classpath when use javac. I got message class not found
    and when I set classpath only classpath=.; It work.

    Why each book tell me different to set classpath.

    What really classpath should I set? Is it sufficient to set classpath=.;

    Thanks.
  2. #2
  3. SwollenMember
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    the master control
    Posts
    264
    Rep Power
    15
    sun suggests setting your class path by using your SDK "tool" (for example):

    java -c <classpath>

    Use the SDK file structure to help you make your decision:

    http://java.sun.com/j2se/1.3/docs/to.../jdkfiles.html
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    0
    Rep Power
    0
    why don't you listen to all of them, and set CLASSPATH to all those paths. You can divide them with ";" symbol like CLASSPATH=c:\jdk\lib;.;c:\widows;c:\games

    you may have as many as you need

IMN logo majestic logo threadwatch logo seochat tools logo