Problem Cant open serverstart.bat direwolf20 1.7.10

  • 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

DaanHofland

New Member
Jul 29, 2019
3
0
0
hello when I start my serverstart.bat come there this error:
C:\Users\Daam\Desktop\server> if not "" == yes <> ===========
cat is not recognized as an internal or external command, operable program or batch file======= JVM test failed can"t run server, exiting
can someone help me ?
greetings
dismissed Hofland
hope he tonight as server dire wolf 20 can play with zn friend ;)
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
can you post the content of the serverstart.bat
rightclick->edit should open it in notepad
 

DaanHofland

New Member
Jul 29, 2019
3
0
0
if NOT "%FTB_VERBOSE%"=="yes" (
@Echo off
)

if NOT EXIST minecraft_server.1.7.10.jar (
echo running install script!
call FTBInstall.bat
)

REM Check if java in path
where java > NUL 2>&1

if %ERRORLEVEL% NEQ 0 (
echo No java binary in path. Can't run server, exiting...
pause
exit /B
)

REM Test JVM
REM e.g. 32-bit JVM does not have server\jvm.dll library
java -server -version > java-test.log 2>&1

if %ERRORLEVEL% NEQ 0 (
echo Detected following JVM error:
echo =======================================
cat java-test.log
echo =======================================
echo JVM test failed. Can't run server, Exiting...
pause
exit /B
)

if not exist eula.txt (
echo Missing eula.txt. Startup will fail and eula.txt will be created
echo Make sure to read eula.txt before playing!
goto startserver
)

find "eula=false" eula.txt 1 > NUL 2>&1
if %ERRORLEVEL% EQU 0 (
echo Make sure to read eula.txt before playing! Exiting.
pause
exit /B
)

:startserver
java -server -Xms2048m -Xmx3072m -XX:permSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -jar FTBServer-1.7.10-1291.jar nogui
echo Server process finished
pause

this?
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
yes now make a backup and remove everything except this
java -server -Xms2048m -Xmx3072m -XX:permSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -jar FTBServer-1.7.10-1291.jar nogui
echo Server process finished
pause

and use it.
if you don't have an eula.txt file it will make 1 and then crash. to fixed this you need to open it and change the false to true