Jump to content

Recommended Posts

Posted

I just double click the Tekkit.jar file- I can't get a batch file to work.

OK, I have used this program a friend gave me to create a launch batch file. I tweaked it, and here is what I have:

@echo off

title CraftBukkit Launcher

echo BukkitGen 1.2.2 Generated CraftBukkit Launcher

echo press any key to start server

pause >> nul

cls

"C:\Program Files (x86)\Java\jre7\bin\javaw.exe" -jar -Xms1G -Xmx3G "C:\Users\<myuser>\Tekkit_Server_3.1.2\Tekkit.jar"

When I try this, I get a pop-up saying that java failed to create the Java Virtual Machine.

Posted

Change this

@echo off

title CraftBukkit Launcher

echo BukkitGen 1.2.2 Generated CraftBukkit Launcher

echo press any key to start server

pause >> nul

cls

"C:\Program Files (x86)\Java\jre7\bin\javaw.exe" -jar -Xms1G -Xmx3G "C:\Users\<myuser>\Tekkit_Server_3.1.2\Tekkit.jar"

To This

java -Xms1G -Xmx3G -jar Tekkit.jar nogui

Also, make sure you have this: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html Installed.

Posted

Change this

@echo off

title CraftBukkit Launcher

echo BukkitGen 1.2.2 Generated CraftBukkit Launcher

echo press any key to start server

pause >> nul

cls

"C:\Program Files (x86)\Java\jre7\bin\javaw.exe" -jar -Xms1G -Xmx3G "C:\Users\<myuser>\Tekkit_Server_3.1.2\Tekkit.jar"

To This

java -Xms1G -Xmx3G -jar Tekkit.jar nogui

Also, make sure you have this: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html Installed.

My computer does not recognize "java" as a command. I don't think it's possible on my computer. ._.

Join the conversation

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

Guest
Reply to this topic...

×   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...