pumpkinpie5 Posted June 23, 2012 Posted June 23, 2012 Sorry for wasting your precious time, but whenever I try to run the launch.bat this pops up; C:\Users\Downstairs\Desktop\Tekkit Server>java -Xmx3G -Xms2G -jar Tekkit.jar nogui 'java' is not recognized as an internal or external command, operable program or batch file. C:\Users\Downstairs\Desktop\Tekkit Server>pause Press any key to continue . . . Help me! If this problem has already been addressed on a thread, please link me to it. I can't wait until Technic Questions.
X_D_face_me Posted June 24, 2012 Posted June 24, 2012 more information about your system would be usefull
penorzilla Posted June 24, 2012 Posted June 24, 2012 If you have a 64 bit version of Windows, you need to make sure you have 64 bit version of java installed. Get that here: http://mc.penorzilla.com/jre-7u4-windows-x64.exe
pumpkinpie5 Posted July 11, 2012 Author Posted July 11, 2012 I think I have a 32 bit, and I installed a 32 bit Java. I also tried to change the command to take up less space (Xmx1G) but that didn't work. Then I looked at the Path. It didn't have the right thing in it. There was just the Java Path. Could someone tell me the original Path?
AlienX Posted July 11, 2012 Posted July 11, 2012 change the bat file to: "c:\program files\java\jre7\bin\java.exe" -Xmx3G -Xms2G -jar Tekkit.jar nogui Give that a go :)
pumpkinpie5 Posted July 13, 2012 Author Posted July 13, 2012 change the bat file to: "c:\program files\java\jre7\bin\java.exe" -Xmx3G -Xms2G -jar Tekkit.jar nogui Give that a go Sorry, it still didn't work. It flashed on then quickly closed when I tried to run it.
AlienX Posted July 13, 2012 Posted July 13, 2012 add the word 'pause' (without quotes) on the next line down in the batch file... This will stop the batch file from closing itself when it gets to the end, so you can see the error. If it is saying that it cant find the java.exe at the location given, perhaps you have got 64bit java & OS, so change the path to read: "c:\program files (x86)\java\jre7\bin\java.exe" However, if the above works, you are not running the correct java bit version... you want to install the 64bit version from here: http://www.java.com/en/download/manual.jsp
penorzilla Posted July 16, 2012 Posted July 16, 2012 Or you could just put java -Xmx3G -Xms2G -jar Tekkit.jar nogui This will default to whatever Java version you have installed suits the requested XMS Ram. If that doesn't work do: java -Xmx1G -Xms1G -jar Tekkit.jar nogui
soulgriever Posted July 16, 2012 Posted July 16, 2012 sigh the only 1 that has even come close is Alienx. penorz and X_D face arnt even close. whats causing your problem is your computer isnt recognizing java as a program an your system variables arent set for java so alien x was trying to help ya bypass that pain in the ass process. first uninstall ALL java on your machine I mean all forms of 32 and 64 bit java. once uninstalled Im assuming u have a 64 bit system install 64 bit java 7. and in ur startup.bat file replace java with "%ProgramFiles%\Java\jre7\bin\java.exe" this will run java without worrying about if its 32 or 64 bit system an make all your problems MUCH easier. best of luck
AlienX Posted July 17, 2012 Posted July 17, 2012 Ah good man, i forgot about defining enviroment variables in batch scripts with the percent symbols!
penorzilla Posted July 17, 2012 Posted July 17, 2012 @soulgriever - In a perfect world his computer would recognize java as a program. If my modified .bat files didn't work for him my next step was to have him reinstall java to fix that issue. Your modified .bat file wouldn't work if he did change his installation location which is why I use java instead of a path to the exe.
soulgriever Posted July 17, 2012 Posted July 17, 2012 I swear some people just want to see the world burn. @penorzilla your banking on the fact that programs always run properly. like i said in the last post you tried to look like a smart ass in, environmental variables DONT always set NO MATTER how many times you install the freaking program. so just because he/she reinstalls java does not mean calling java in their .bat file will work. even if they set them manualy, some machines do not like changing their variables. sigh
penorzilla Posted July 18, 2012 Posted July 18, 2012 I'd flame you hard, but I don't feel like breaking the rules. :)
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