developers

    Forum Stats

  • 3,873,884 Users
  • 2,266,627 Discussions
  • 7,911,651 Comments

Discussions

'java' is not an internal or external command?

Hello, I've usually never had problems with java until now and I will greatly appreciate it if you help me "for free" unlike Oracle which charges you 5$ per minute. >.> Seriously?
On to the problem, recently I decided to make a tekkit server(Tekkit is a modpack for a game called "Minecraft"[Ring a bell? It was coded in Java]) but when ever I launch the program it gives me this error:

C:\Users\Erik\Desktop\Server>java -Xmx1G -Xms1G -jar Tekkit.jar nogui
'java' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Erik\Desktop\Server>pause
Press any key to continue...

Now usually reading errors and finding out the problem isn't hard for me due to the fact I code in Java, but this one stumps me. I believe it gives me this error because I'm missing something from Java but I'm more than confident that I have everything I need installed. Am I missing something? If so please do tell.

Answers

  • 949825
    949825 Member Posts: 3
    Found out I need the latest version. I try downloading the latest version before and it keeps giving me this error saying I need to retry later. I restart my computer and try it again but I'm still getting the error >:\
  • sabre150
    sabre150 Member Posts: 1,405
    This probably has little to do with Java and more to do with the fact that you don't have the path to the java executable in your PATH environment variable.
  • gimbal2
    gimbal2 Member Posts: 11,949 Gold Trophy
    BombingParadise wrote:
    Found out I need the latest version. I try downloading the latest version before and it keeps giving me this error saying I need to retry later. I restart my computer and try it again but I'm still getting the error >:\
    No you don't, Minecraft is built for Java 6.

    Amazing how you can do something as difficult as mod a game not yet built to be modded and yet not even know the basics of the basics of the command prompt, nor have the capacity to research it apparently.
This discussion has been closed.
developers