Announcement

Collapse
No announcement yet.

Setting path on WinXP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting path on WinXP

    How do I add onto the path in WinXP? I went into control panel->system and edited the environmental path variable, adding the directory I wanted to the end, and saved, and reset my computer. However, when I view the path in the DOS prompt, it doesn't show the directory I added. I'm trying to add the java SDK bin directory to the path so I can compile in the DOS prompt without having to type out the full path of the javac.exe file.

    Here's what my path variable value looks like, though it doesn't appear to add the last addition I made:

    %SYSTEMROOT%\system32;%SYSTEMROOT%;%SYSTEMROOT%\sy stem32\WBEM;C:\j2sdk1.4.0\bin


    Thanks in advance for any help.

  • #2
    Why is it that in the DOS prompt (on WinXP) I use "dir" and see the directory "Program Files", but when I try to change to that directory (cd Program Files) the directory can't be found? I tried "Progra~1" insead (rememberd from previous versions of win) and I got into the Program Files directory.

    Why is dir showing me directory names that I can't open? Why does dir not show "Progra~1", the directory I can actually open, as opposed to "Program Files" which I can't?

    Hopefully that wasn't too ambiguous... Thanks for the help.

    Comment


    • #3
      To your second question: IT CALLED DOS! it only supports 8 letter long names.

      Comment


      • #4
        With the second question, when using commands in DOS, or most Command Line Interfaces, when there is a space it usually means there will be a parameter following.. So when you put the space in between Program Files, it thinkgs that you are trying to use a parameter Files, which doesn't exist for the dir command...

        Comment


        • #5
          Something else to consider (and this may very well tie into your first question) is that WinXP does not have a true DOS capability. The command line prompt you get is just that, a command line that will allow you to do some basic troubleshooting. DOS compatibility was removed from the Windows platform as far back as WinME.

          This could also explain why you cannot set a standard PATH statement in your command line. This statement was normally given in the autoexec.bat file from years past.
          Old age and treachery will overcome youth and skill
          My Toys

          Comment


          • #6
            i use jdk myself and i have no problems with it.

            but i think i see what problem the problem is.

            in Enviromental Variables, you have to create a NEW variable and not add if to the existing one.
            it will not work if you just add it to the existing PATH (made the same mistake too when i first used it).

            When you create a new variable:
            put the variable name as PATH
            and the variable value as <your directory> C:\j2sdk1.4.0\bin

            i think you only need to put in in the systems variables but i have also placed another variable in the USERS section.

            hope that fixes it

            Comment


            • #7
              I realize that DOS only supports 8 letter filenames. The problem is, when I dir, it shows "Program Files" as a directory (which I can't access by typing cd Program Files). In previous versions of windows, it'd shorten the name to something like: Progra~1.


              Thanks for the help with the path, I'll try out your suggestions.

              Comment


              • #8
                It shows the full directory name because it isn't a true DOS environment, just an emulator that WinXP sets up. Since it still tries to emulate DOS, it doesn't work with the full directory name.
                Old age and treachery will overcome youth and skill
                My Toys

                Comment


                • #9
                  So is there anyway to get "dir" to show the workable directory names? Seems like it makes any dos prompt at all rather pointless.

                  Comment


                  • #10
                    I think this is Microsoft's subtle way of saying 'Let go of DOS'....
                    :(

                    Comment


                    • #11
                      Why am I not having aproblem with this? I have just navigated through all the folders from the root directory upwards and finally typing: cd Documents and Settings, exactly as the directory is named and then looking at the contents!

                      Comment


                      • #12
                        is your filesystem FAT32 or NTFS? Apparently, FAT32 doesn't support longer filenames and that's what I'm on:-( Still seems pretty weak on MS's part not to give me a way to navigate folders through DOS.

                        Comment

                        Working...
                        X