Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.
    • Claycorp

      This forum is now READ ONLY!   01/20/2020

      As of this post and forever into the future this forum has been put into READ ONLY MODE. There will be no new posts! A replacement is coming SoonTM . If you wish to stay up-to-date on whats going on or post your content. Please use the Discord or Sub-Reddit until the new forums are running.

      Any questions or comments can be directed to Claycorp on either platform.
mrbrianm

[Solved] Server .bat run file not working.

9 posts in this topic

I am trying to set up a server but when I try to run the .bat file shown here (http://wiki.terrafirmacraft.com/Installation) the command prompt window appears for a split second and then disappears.

 

I have manually copied the what is contained within the file into the command prompt window to only return with " 'java' is not recognized as an internal or external command, operable program or batch file." 

 

I know that it works since if I double click on the "minecraftforge-universal.jar" file the server starts up and functions properly. The problem is that it doesn't have enough ram to run without crashing. 

 

This is the second time I've remade the server file and had the same results. I have no idea what I'm doing wrong or IF I'm doing anything wrong.

0

Share this post


Link to post
Share on other sites

Try using

@echo off"C:Program FilesJavajre7binjava.exe" -Xms1G -Xmx2G -jar minecraftforge-universal-1.6.4-9.11.1.965-v164-pregradle.jar
0

Share this post


Link to post
Share on other sites

 

Try using

@echo off"C:Program FilesJavajre7binjava.exe" -Xms1G -Xmx2G -jar minecraftforge-universal-1.6.4-9.11.1.965-v164-pregradle.jar

I tried what you said except I had to use "Program Files (x86)". It had a different outcome at least. The command prompt still only flashed on the screen so I entered it directly and it came up with the error " Error: Unable to access jarfile minecraftforge-universal-1.6.4-9.11.1.965-v164-pregradle.jar" 

0

Share this post


Link to post
Share on other sites

I don't understand why you'd have to use program files x86 since that's for 32 bit programs and you should be using 64 bit java when running tfc

0

Share this post


Link to post
Share on other sites

If you only have an 32bit operating system, the -Xmx2G has to be changed to -Xmx1G because that's the maximum memory that Java 32bit can allocate.

 

It should be noted that 1GB is required to make single player run smoothly, and if you're on a 32bit OS, you really aren't going to have the processing power and memory required to host a server.

0

Share this post


Link to post
Share on other sites

I don't understand why you'd have to use program files x86 since that's for 32 bit programs and you should be using 64 bit java when running tfc

The reason I said that I had to use x86 is that unless I did, command prompt would return with "The system cannot find the path specified."

0

Share this post


Link to post
Share on other sites

If you only have an 32bit operating system, the -Xmx2G has to be changed to -Xmx1G because that's the maximum memory that Java 32bit can allocate.

 

It should be noted that 1GB is required to make single player run smoothly, and if you're on a 32bit OS, you really aren't going to have the processing power and memory required to host a server.

Just to be sure I checked and I am running a 64 bit OS but I did try what you advised with both the original .bat file and the newly suggested one. The original still gives the same "cannot find path specified" error and the new file gave me the "cannot access minecraftforge-universal-1.6.4-9.11.1.965-v164-pregradle.jar" error.

 

I know that I can run a vanilla server and even a bukkit server with plugins with more ram allocated to it since I've done that in the past. 

0

Share this post


Link to post
Share on other sites

Do you have 64 bit java even installed? The default installer/updater only does java 32 bit. You can check the Uninstall Programs to see if you have any older versions installed (you should delete them all if you do) and then install this one:

 

http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jre-7u60-windows-x64.exe

 

Unless it explicitly says (64 bit) next to the program name in the Uninstall Programs screen, it's 32 bit.

0

Share this post


Link to post
Share on other sites

Do you have 64 bit java even installed? The default installer/updater only does java 32 bit. You can check the Uninstall Programs to see if you have any older versions installed (you should delete them all if you do) and then install this one:

 

http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jre-7u60-windows-x64.exe

 

Unless it explicitly says (64 bit) next to the program name in the Uninstall Programs screen, it's 32 bit.

That fixed it. Thank you very much. 

0

Share this post


Link to post
Share on other sites