grigorec Posted February 19, 2013 Posted February 19, 2013 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
0 Mr.Hotkeys Posted February 19, 2013 Posted February 19, 2013 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 grigorec Posted February 20, 2013 Author Posted February 20, 2013 yes, it is. But for me it isn't launch.bat its just launch.
0 thebird Posted February 20, 2013 Posted February 20, 2013 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
Question
grigorec
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:
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now