Problem Can't start my server using a batch file

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

IamVictorious

New Member
Jul 29, 2019
5
0
0
Hello, I'm trying to add more ram to my server, and I know how to, but whenever I try to start the serverstart.bat, it opens for a split second, then dissappears. when I add pause to the code, it tells me java isn´t recognised as an internal or external command, program or batchfile. I've tried re-downloading the server file, that doesn't work. The code I currently have in my serverstart.bat:
java -Xms512M -Xmx1G -jar ftbserver.jar
pause
please help,
many thanks in advance!
- Victor -
 

lavarthan

New Member
Jul 29, 2019
2,437
0
0
Does the server have 64bit version of java? You need the 64bit version to allocate more than 1GB to java.
Follow the directions about java in the link provided below. Get only the latest 64bit version and make sure you uninstall all other versions.
http://desk.feed-the-beast.com/index.php?/Knowledgebase/Article/View/9/0/basic-troubleshooting

If you have the 64bit version then please provide the error logs pasted to pastebin and linked here. Instructions below.
http://desk.feed-the-beast.com/inde...29/1/what-log-do-you-need-where-can-i-find-it
 

IamVictorious

New Member
Jul 29, 2019
5
0
0
Ok, I've run into another problem just now: when I start the server using the ServerStart.bat , I get this error:
[WARNING] **** FAILED TO BIND TO PORT!
[WARNING] The exception was: java.net.BindException: Address already in use: JVM_Bind
[WARNING] Perhaps a server is already running on that port?
I've looked it up on google but couldn't find a fix that worked for me (I tried removing java.exe in processes, I redownloaded the server folder). When I use the normal ftbserver.jar launcher it works fine, but with the batch file it doesn't.
would really appreciate some more help, thanks!
- Victor -[DOUBLEPOST=1368044333][/DOUBLEPOST]the error I get in the batch cmd.exe is a little more extensive:
**** FAILED TO BIND TO PORT!
The exeption was: java.net.BindExeption: Address already in use :JVM_Bind
Perhaps a server is already running on that port?