Hello World trouble

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Polarbear20
    New Member
    • Aug 2008
    • 2

    Hello World trouble

    I keep getting the error "javac" is not recognized as an internal or external command, operable program or batch file.

    I have heard I need to make a path, but I don't understand how. I know how to get to the window though.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Once you get to the 'window' then the environment variable called PATH needs to be edited so that it also includes the bin folder of your JDK installation.

    Comment

    • ajos
      Contributor
      • Aug 2007
      • 283

      #3
      Originally posted by Polarbear20
      I keep getting the error "javac" is not recognized as an internal or external command, operable program or batch file.

      I have heard I need to make a path, but I don't understand how. I know how to get to the window though.
      Yes, thats a classpath issue. You need to do a google search on how to set the class path for java. Heres a start google

      and sun docs

      regards,

      ajos

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by ajos
        Yes, thats a classpath issue. You need to do a google search on how to set the class path for java. Heres a start google

        and sun docs

        regards,

        ajos
        Not exactly. classpath != PATH.
        classpath needs to point to classes/jars needed by a specific application/class.
        PATH needs to point to the location of your JDK's bin folder.

        Comment

        • Polarbear20
          New Member
          • Aug 2008
          • 2

          #5
          I don't understnad what to what for the class path.

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Originally posted by Polarbear20
            I don't understnad what to what for the class path.
            You don't have to do anything for your classpath (yet); first you have to set your
            'path' environment variable to be able to run your java compiler javac or java itself.

            If you don't know how to do it, read a manual that explains these OS basics first.
            This has nothing to do with Java, it is just a simple environment setting.

            kind regards,

            Jos

            Comment

            • BigDaddyLH
              Recognized Expert Top Contributor
              • Dec 2007
              • 1216

              #7
              How to update the PATH variable (Windows): http://java.sun.com/javase/6/webnote...ml#Environment

              Comment

              Working...