Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Help Please  (Read 14151 times)

0 Members and 1 Guest are viewing this topic.

Salmon Trout

  • Guest
Re: Help Please
« Reply #15 on: January 20, 2014, 03:49:01 PM »
I didn't copy and paste, I just typed it

Why?

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Help Please
« Reply #16 on: January 20, 2014, 03:49:48 PM »
javac is not a folder.

The Windows %path% environment variable should by default consist of this:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

If all that has been nuked by a Java install (this is known to happen sometimes, by the way) you have problems, as has been noted. Typically, this is caused by an installer over-writing the path variable when it should be appending to it. I believe this can happen with systems where the previous path string was over a certain number of characters (some installers barf at 512, others at 2048)

I'd be more inclined to think they nuked it themselves by editing the path.
I was trying to dereference Null Pointers before it was cool.

Squashman



    Specialist
  • Thanked: 134
  • Experience: Experienced
  • OS: Other
Re: Help Please
« Reply #17 on: January 20, 2014, 03:57:57 PM »
javac is not a folder.

I'd be more inclined to think they nuked it themselves by editing the path.
I agree on both comments.

tkoch96

    Topic Starter


    Rookie

    • Experience: Experienced
    • OS: Windows 8
    Re: Help Please
    « Reply #18 on: January 20, 2014, 05:22:58 PM »
    By default it did consist of that, but I changed it to what it currently is because that is what websites told me I needed to do in order to make the command "javac" work

    Squashman



      Specialist
    • Thanked: 134
    • Experience: Experienced
    • OS: Other
    Re: Help Please
    « Reply #19 on: January 20, 2014, 05:49:24 PM »
    By default it did consist of that, but I changed it to what it currently is because that is what websites told me I needed to do in order to make the command "javac" work
    I do not know what website you were following but I posted the link to the official documentation and it says ADD to the path, not replace. Nor does it tell you to add JAVAC to the path. The path ends at the BIN folder.

    tkoch96

      Topic Starter


      Rookie

      • Experience: Experienced
      • OS: Windows 8
      Re: Help Please
      « Reply #20 on: January 20, 2014, 07:17:27 PM »
      okay so what should i do? how do i get my default path back?

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Help Please
      « Reply #21 on: January 20, 2014, 07:52:21 PM »
      okay so what should i do? how do i get my default path back?

      Whatever you had before, you destroyed when you deleted it. You can set it to what Salmon Trout provides, which is the default, and then add the path to the java bin folder.
      I was trying to dereference Null Pointers before it was cool.

      tkoch96

        Topic Starter


        Rookie

        • Experience: Experienced
        • OS: Windows 8
        Re: Help Please
        « Reply #22 on: January 21, 2014, 06:15:33 PM »
        Thank you everyone, I figured it out