Jump to content
  • 0

'java' is not recognized as an internal or external command, ....


Question

Posted

Title: Launch file launches but: 'java' is not recognized as an internal or external command, ....

Version: 0.5.1

OS: Windows 7 Proffesional

Java Version: Version 7 Update 13

Description of Problem:

When starting the launch windows batch file (I'm trying to make a server) it says

'java' is not recognized as an internal or external command, ....

this is also 0.5.7, not .1

Error Messages:

'java' is not recognized as an internal or external command, ....

Error Log:


'java' is not recognized as an internal or external command,

operable program or batch file

4 answers to this question

Recommended Posts

  • 0
Posted

Give us more info! Is this for the server? I assume it is because you're using launch.bat to start it but that kind of thing would help. And have you tried anything to fix it?

Have you even Googled the problem at all?

http://stackoverflow.com/questions/7709041/javac-is-not-recognized-as-an-internal-or-external-command-operable-program-or

http://wiki.answers.com/Q/How_do_you_stop_the_error_'java'_is_not_recognized_as_an_internal_or_external_command_operable_program_or_batch_file

http://www.java.com/en/download/help/path.xml

Also probably don't want to get into the habit of bumping your own threads.

  • 0
Posted

yes, it is. But for me it isn't launch.bat its just launch.

Windows hides file extensions by default, the .bat is there but you can't see it.

The error you are getting means that Java isn't installed or Java isn't in your PATH system variable.

Try starting your server with the following batch file.

@ECHO OFF

set TEKKITDIR=%CD%

IF NOT EXIST "C:Program Files (x86)Javajre7bin" GOTO SECONDDIR

CD "C:Program Files (x86)Javajre7bin"

@ECHO ON

java -Xmx2G -Xms1G -jar %TEKKITDIR%Tekkit.jar nogui --nojline

PAUSE

GOTO END

:SECONDDIR

IF NOT EXIST "C:Program FilesJavajre7bin" GOTO ERROR

@ECHO ON

java -Xmx2G -Xms1G -jar %TEKKITDIR%Tekkit.jar nogui --nojline

PAUSE

GOTO END

:ERROR

ECHO "CANNOT FIND JAVA.EXE OR JAVA DIRECTORY.

:END

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...