Java-Xp and not working

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • River

    Java-Xp and not working

    i just started a Java class, the PC's in school have w2000, at home i have XP Home. when i try to compile in DOS using javac it doesnt work. i can't seem to find a solution to this problem. i would greatly appreaciate any help anyone can give me.
    thanks a new Java fan
  • webstar

    #2
    Re: Java-Xp and not working

    Well I'm not sure but my best bet is that you haven't changed the Autoexec.bat file. so if you haven't done this then this is what you do...
    Go to c:\ and go tools and folder options...
    then click the view tab and select show hidden files and folders and unselect Hide protected operating system files.
    now apply and ok
    there should be a file called "Autoexec.b at". you need to edit this file in notepad
    type PATH=C:\java\bi n; or what ever path you saved java in, but if there is already the PATH= then don't type that and use a ; between each path name.
    save the file.
    I hope this makes sense. Good luck at school.
    matt
    "River" <r7j7@monmouth. com> wrote in message news:bf9oni$dra $1@news.monmout h.com...
    i just started a Java class, the PC's in school have w2000, at home i have XP Home. when i try to compile in DOS using javac it doesnt work. i can't seem to find a solution to this problem. i would greatly appreaciate any help anyone can give me.
    thanks a new Java fan

    Comment

    • River

      #3
      Re: Java-Xp and not working

      Thanks webstar, i tried your suggestion and i still get teh same error. 'javac' is not recognized as an internal or external command,
      operable program or batch file..
      any more ideas will be welcome i would really like to get this going.
      "webstar" <triplejboy@hot mail.com> wrote in message news:2K5Sa.3529 $OM3.855@news-server.bigpond. net.au...
      Well I'm not sure but my best bet is that you haven't changed the Autoexec.bat file. so if you haven't done this then this is what you do...
      Go to c:\ and go tools and folder options...
      then click the view tab and select show hidden files and folders and unselect Hide protected operating system files.
      now apply and ok
      there should be a file called "Autoexec.b at". you need to edit this file in notepad
      type PATH=C:\java\bi n; or what ever path you saved java in, but if there is already the PATH= then don't type that and use a ; between each path name.
      save the file.
      I hope this makes sense. Good luck at school.
      matt
      "River" <r7j7@monmouth. com> wrote in message news:bf9oni$dra $1@news.monmout h.com...
      i just started a Java class, the PC's in school have w2000, at home i have XP Home. when i try to compile in DOS using javac it doesnt work. i can't seem to find a solution to this problem. i would greatly appreaciate any help anyone can give me.
      thanks a new Java fan

      Comment

      • Daniel

        #4
        Re: Java-Xp and not working

        It seems that your java program is not in the "path". Click on start, then
        right click on my computer and select properties, then select the advanced
        tab, and then select the environment variables button, and at the bottom
        where it says "System variables" edit the "path" variable. In the path
        variable value, add the directory where javac.exe is located to the end of
        the line. Make sure that you have a semi-colon ; before you add your entry.

        So, if your javac.exe is in c:\java\bin, then add ";c:\java\b in;" (without
        quotes) to the end of the path variable value.

        Close all your dos windows after doing this.

        Open a new dos window and you should be ready to go.



        "River" <r7j7@monmouth. com> wrote in message
        news:bfc0dg$mla $1@news.monmout h.com...
        Thanks webstar, i tried your suggestion and i still get teh same error.
        'javac' is not recognized as an internal or external command,
        operable program or batch file..
        any more ideas will be welcome i would really like to get this going.
        "webstar" <triplejboy@hot mail.com> wrote in message
        news:2K5Sa.3529 $OM3.855@news-server.bigpond. net.au...
        Well I'm not sure but my best bet is that you haven't changed the
        Autoexec.bat file. so if you haven't done this then this is what you do...
        Go to c:\ and go tools and folder options...
        then click the view tab and select show hidden files and folders and
        unselect Hide protected operating system files.
        now apply and ok
        there should be a file called "Autoexec.b at". you need to edit this file
        in notepad
        type PATH=C:\java\bi n; or what ever path you saved java in, but if there
        is already the PATH= then don't type that and use a ; between each path
        name.
        save the file.
        I hope this makes sense. Good luck at school.
        matt
        "River" <r7j7@monmouth. com> wrote in message
        news:bf9oni$dra $1@news.monmout h.com...
        i just started a Java class, the PC's in school have w2000, at home i
        have XP Home. when i try to compile in DOS using javac it doesnt work. i
        can't seem to find a solution to this problem. i would greatly appreaciate
        any help anyone can give me.
        thanks a new Java fan


        Comment

        Working...