How to fix "java is not recognized as an internal command or external command"

Discussion in 'Bukkit Help' started by astroskillz, Apr 4, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    astroskillz

    I've seen this question a couple of times now, and it seems to be a huge struggle when making a server. Here's a guide to fix it.

    Let's start! Press Start, type cmd, and hit Enter. You will now get a command prompt screen. Type "java -version", without the "", and you will see something like this:
    [​IMG]
    Notice where it says java version "1.7.0_17". If the number starts with 1.7, you are running java 7. If this number starts with 1.6, you have java 6. We will use this later in our tutorial.

    Now go to: Start>Computer>System Properties (Top middle)>Advanced system settings (Left side)>Environment Variables (Button at the bottom right corner).

    You will now see 2 white boxes. Look at the bottom box named "System Veriables" and find the Variable named "Path". Double click it, and a new window will pop up. Move to the end of "Variable value" and place a semicolon ( ; ). You would now need to find out your Java path.

    Remember the java version from the first step? Good. Press Start, go to Computer, and double click on C:\ (Usually the first drive, on your left). Now, you need to know if you have either a 64-bit or 32-bit version of java. If you have a 32-bit computer, you would have a 32-bit version of Java. If you are on 64-bit, you have either a 32-bit or 64-bit version.

    How do I find out if I have a 32-bit or 64-bit computer?
    Go to: Start>Computer>System Properties. Find "System Type". This will either say 32-bit or 64-bit Operating System.

    I'm on a 32-bit computer. What is my path?
    If you're using Java 6: C:\Program Files\Java\jre6\bin
    If you're using Java 7: C:\Program Files\Java\jre7\bin

    I'm on a 64-bit computer. What is my path?
    Go to this website and allow Java to run. Under "Java Architecture" it will say either 32 or 64-bit.

    If it says 32-bit, and you have Java 6: C:\Program Files\Java\jre6\bin
    If it says 32-bit, and you have Java 7: C:\Program Files\Java\jre7\bin

    If it says 64-bit, and you have Java 6: C:\Program Files (x86)\Java\jre6\bin
    If it says 64-bit, and you have Java 7: C:\Program Files (x86)\Java\jre7\bin

    Now that you know your java path, insert that after the semicolin in the "System Variable" window. "Variable value" will now say, for example:

    The bold part would be the semicolin, followed by your path. Click on "Ok" and you're done!

    Your server should now start. If not, please leave a reply. I hoped this guide helped you, and have fun crafting!
     
  2. Offline

    breezeyboy

    ToDo: Create an auto-one for java
     
  3. Offline

    astroskillz

    What?
     
  4. Offline

    breezeyboy

    Asin ima see if i can code a program to do this
     
  5. Offline

    astroskillz

    Ah, sounds great. Good luck!
     
  6. Offline

    breezeyboy

    Cheers
     
  7. Offline

    ignatius02

    Thanks for your help! It took me forever to figure it out. ;)
     
  8. Offline

    amitkiller

    when i write "java -version" it writes me the same!
    wtf!
     
  9. Offline

    dcskater99

    When I type java-version.. It says the same thing "java-version is not recognized as an internal ot external command, operable program or batch file
     
    Craftminer360 and Lachster976 like this.
  10. Offline

    oOMcNuggetzOo

    GUYS ITS BECAUSE JAVA COULD NOT FIND THE PATH! WATCH MY VIDEO. WATCH IT!! AND YOU'LL BE ABLE TO LAUNCH YOUR CONSOLE :D
     
    bob54312 likes this.
  11. Offline

    lorow

    OK so when i go into the console and type "java -version" it still comes up as java is not recognized as an internal or external command. Help?
    (No I didn't add the quotes when i typed into the console)
     
  12. Offline

    oOMcNuggetzOo

    This 100% fixes the problem from where the problem started!!!!!!
     
  13. Offline

    amitkiller

    THANKS VERY MUCH DUD THAT SO HELPED ME I KEPS SAYING TO MY FRIENDS "WAIT FIXING PROB SOON" AND AT LAST I CAN!!!!!!!! THANK YOU DUDE!
     
Thread Status:
Not open for further replies.

Share This Page