Configuration (path and classpath)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BMD
    New Member
    • Nov 2007
    • 6

    #1

    Configuration (path and classpath)

    Hi all,
    I have a problem configuring my system at home, what do I need in the path, and what do I need in the classpath to get java to compile and run. I have Windows 2000 and the latest download from sun.java.
    It works (java) on the XP system (at work) but not at home running 2000, I'm sure something is not configured correctly.

    Any help (Please)
    Thanks,
    BMD.
    PS, Soon I will post about how to have a button load a new window with data from an txt or xls file. Got to get it running first.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by BMD
    Hi all,
    I have a problem configuring my system at home, what do I need in the path, and what do I need in the classpath to get java to compile and run. I have Windows 2000 and the latest download from sun.java.
    It works (java) on the XP system (at work) but not at home running 2000, I'm sure something is not configured correctly.

    Any help (Please)
    Thanks,
    BMD.
    PS, Soon I will post about how to have a button load a new window with data from an txt or xls file. Got to get it running first.
    Right click My computer navigate to environment variables and add the path of your Java bin directory to your system's path variable and restart your computer.

    Comment

    • heat84
      New Member
      • Nov 2007
      • 118

      #3
      in windows 95/98 you can set the path permanently in autoexec. bat , you can add this line SET PATH=....... , the path to your javac.

      Comment

      • BMD
        New Member
        • Nov 2007
        • 6

        #4
        I was told I need the jdk location in the path and the javac location in the calss path. I'm running very old win 2000.
        Thanks for the quick replies.
        BMD

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          Originally posted by BMD
          I was told I need the jdk location in the path and the javac location in the calss path. I'm running very old win 2000.
          Thanks for the quick replies.
          BMD
          Well then have you added the Java bin directory to your path then?

          Comment

          • heat84
            New Member
            • Nov 2007
            • 118

            #6
            If you put the bin in your classpath , you will be home and dry.

            Comment

            • r035198x
              MVP
              • Sep 2006
              • 13225

              #7
              Originally posted by heat84
              If you put the bin in your classpath , you will be home and dry.
              The classpath specifies where to find the class files during compilation. It is different from the path which specifies where the java tools are located. The bin thus goes in the path not the classpath.

              Comment

              Working...