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

Author Topic: Help Please  (Read 13197 times)

0 Members and 1 Guest are viewing this topic.

tkoch96

    Topic Starter


    Rookie

    • Experience: Experienced
    • OS: Windows 8
    Help Please
    « on: January 15, 2014, 08:09:31 PM »
    Hi, I have an HP envy m6 sleekbook with AMD A10-5745M APU with Radeon(tm) HD Graphics 2.10 GHz and am running on windows 8.1

    I'm wondering why the command in cmd "javac" wont work, this is the message it displays: http://puu.sh/6mtGY.png

    I've checked to make sure I have the JDK downloaded, proof here: http://puu.sh/6mvck.png

    I've also set the paths in environment variables to the jdk's bin location, which is what every other website told me to do, but I still get the same old message in command prompt saying it isn't recognized.

    Please help:)

    Squashman



      Specialist
    • Thanked: 134
    • Experience: Experienced
    • OS: Other
    Re: Help Please
    « Reply #1 on: January 16, 2014, 05:33:29 AM »
    open up a cmd prompt and echo the path variable.  Copy and paste the output to here.  You don't need to send a screen shot.  Just copy and paste the text from the cmd window.

    briandams



      Beginner

      Thanked: 2
      • Experience: Guru
      • OS: Unknown
      Re: Help Please
      « Reply #2 on: January 16, 2014, 05:36:24 AM »
      very easy, if you not sure whether you have javac, just do a
      Code: [Select]
      dir /S <your_supposed_java_installation_directory or your whole drive> | findstr "javac.exe"
      to see if you have the javac program installed. If found, make you sure you put that into your PATH

      Allan

      • Moderator

      • Mastermind
      • Thanked: 1260
      • Experience: Guru
      • OS: Windows 10
      Re: Help Please
      « Reply #3 on: January 16, 2014, 05:54:59 AM »
      tkoch96 - in the future please use a subject that relates to your problem rather than some thing like "please help". Thank you.

      tkoch96

        Topic Starter


        Rookie

        • Experience: Experienced
        • OS: Windows 8
        Re: Help Please
        « Reply #4 on: January 17, 2014, 06:26:49 PM »
        I'm not sure what you want me to do when you say echo the path variable

        Squashman



          Specialist
        • Thanked: 134
        • Experience: Experienced
        • OS: Other
        Re: Help Please
        « Reply #5 on: January 18, 2014, 09:40:08 PM »
        I'm not sure what you want me to do when you say echo the path variable
        Windows has all kinds of environmental variables that are set when the computer boots up.  You are familiar with the command prompt so I assumed you knew what these were.  To see what your PATH variable is set to from the cmd prompt type one of the following commands.
        Code: [Select]
        echo %path%
        set path

        tkoch96

          Topic Starter


          Rookie

          • Experience: Experienced
          • OS: Windows 8
          Re: Help Please
          « Reply #6 on: January 19, 2014, 08:51:02 PM »
          okay here it is :

          C:\Program Files\Java]jdk1.7.0_51

          Squashman



            Specialist
          • Thanked: 134
          • Experience: Experienced
          • OS: Other
          Re: Help Please
          « Reply #7 on: January 20, 2014, 09:45:18 AM »
          okay here it is :

          C:\Program Files\Java]jdk1.7.0_51
          If that is all that is in your path variable then you have some other serious issues. Can't say I have ever seen anyone use a right bracket for the folder installation path either.

          Squashman



            Specialist
          • Thanked: 134
          • Experience: Experienced
          • OS: Other
          Re: Help Please
          « Reply #8 on: January 20, 2014, 09:55:18 AM »

          tkoch96

            Topic Starter


            Rookie

            • Experience: Experienced
            • OS: Windows 8
            Re: Help Please
            « Reply #9 on: January 20, 2014, 10:12:08 AM »
            Sorry that bracket is supposed to be a "\", just a typo on my part

            I've already done everything in that link but "javac" is still not recognized as a command

            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 #10 on: January 20, 2014, 10:28:11 AM »
            Quote
            C:\Program Files\Java\jdk1.7.0_51
            it should be C:\Program Files\Java\jdk1.7.0_51\bin as described in the document Squashman linked.
            You want the path to point to the location of the executables you want to run. Not the directory containing the bin folder itself.
            I was trying to dereference Null Pointers before it was cool.

            Squashman



              Specialist
            • Thanked: 134
            • Experience: Experienced
            • OS: Other
            Re: Help Please
            « Reply #11 on: January 20, 2014, 11:34:29 AM »
            Sorry that bracket is supposed to be a "\", just a typo on my part

            I've already done everything in that link but "javac" is still not recognized as a command
            How could it possibly be a typo.  If you just copy and paste the output from the cmd prompt there would be no issue at all. As BC_Programmer has stated, the link I provided shows you the correct path you need to use and you aren't using it.

            Geek-9pm


              Mastermind
            • Geek After Dark
            • Thanked: 1026
              • Gekk9pm bnlog
            • Certifications: List
            • Computer: Specs
            • Experience: Expert
            • OS: Windows 10
            Re: Help Please
            « Reply #12 on: January 20, 2014, 12:46:43 PM »
            Just for reference. The javac the OP refers to is a compiler from Oracle.
            http://en.wikipedia.org/wiki/Javac
            Quote
            javac (pronounced "java-see", or often "javack") is the primary Java compiler, included in the Java Development Kit (JDK) from Oracle Corporation

            tkoch96

              Topic Starter


              Rookie

              • Experience: Experienced
              • OS: Windows 8
              Re: Help Please
              « Reply #13 on: January 20, 2014, 03:34:50 PM »
              I didn't copy and paste, I just typed it

              here is what my computer is showing me, I thought I did everything in that link

              http://puu.sh/6sbPs.png

              Salmon Trout

              • Guest
              Re: Help Please
              « Reply #14 on: January 20, 2014, 03:48:37 PM »
              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)