Jump to content

Question

Posted

Title: Batch File: Not Working

Version: 3.0.3/3.0.4

OS: Windows 64 bit

Java Version: Latest: Java 7, Update 5

Description of Problem:

When I attempt to use the .bat file titled "launch" in the pre-made Tekkit SMP Folder, it produces an error, and will NOT show me what is happening within the server. The only way to run the server is to use the .exe file titled "Tekkit", and I cannot see the server log, and can only turn off the server when op and playing on it. If I am not op, I need to turn off my computer and turn it back on.

Error Messages:

Error Log:


C:\Users\******\Desktop\Tekkit_Server>java -jar technic-launcher-latest.jar

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

operable program or batch file.



C:\Users\******\Desktop\Tekkit_Server>pause

Press any key to continue . . .

11 answers to this question

Recommended Posts

  • 0
Posted

Are you using java 64bit or 32 bit?

You need to replace your "java" with the file path to your java.exe in your program files/java folders.

Can you give me an example of what a file path may be?

  • 0
Posted

Can you give me an example of what a file path may be?

C:\Program Files\Java\jre7\java.exe

It'll depend on if you are using 64bit java or 32 bit java... and if you are using java 7 or 6

  • 0
Posted

Well, here is the text inside the batch file (I have learned that it is in Program Files (x86), and its Java 7). What is wrong? I tried inputting the string of text you had, C:\Program Files\Java\jre7\java.exe, instead of "java", but it didn't work. This could be because I am not very strong in this kind of area. Text is below.

java -jar technic-launcher-latest.jar

pause

Thanks if you can help penorzilla.

  • 0
Posted

For me it looks like a path problem,

Try to add this to the path = ;C:\Program Files\Java\jre7\bin

If you run Java 6 writte jre6 instead of jre7 and if you run a 64-Bit system add (x86) after program files, will look like this Program Files(x86)

More detailed instruction: http://forums.technicpack.net/threads/how-to-set-up-a-tekkit-server-step-by-step-guide-win-7-images.2299/

EDIT: I suggest you getting a clean launcher.bat when youre done whit the link above.

  • 0
Posted

If you run Java 6 writte jre6 instead of jre7 and if you run a 64-Bit system add (x86) after program files

If you're doing this and it works, you're using 32-bit Java on a 64-bit system, which is never a good idea imho.

  • 0
Posted

If you're doing this and it works, you're using 32-bit Java on a 64-bit system, which is never a good idea imho.

A lot of programs default to 32 bit java even if you have 64 bit java. I recommend you have both installed, most programs that can use more than 3 gigs of ram will automatically switch to 64bit java over the 32 bit version if it is available.

  • 0
Posted

A lot of programs default to 32 bit java even if you have 64 bit java. I recommend you have both installed, most programs that can use more than 3 gigs of ram will automatically switch to 64bit java over the 32 bit version if it is available.

Minecraft is not one of those programs. You will have to manually select the version of Java that's appropriate by running the launcher .jar with the full 64-bit Java path.

  • 0
Posted

Thanks for all the feedback guys. But, I have tried the code penorzilla had given me, and followed the tutorial from the link Mr. Kirk suggested. Neither of these worked. Do any of you guys know if there is a video tutorial on the forums or a link that would help even further?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...