Server Start bat file issue

  • 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

xFHAxWAR

New Member
Jul 29, 2019
17
0
0
upload_2014-1-17_14-19-25.png
 

yugic

New Member
Jul 29, 2019
26
0
0
ok this is getting wierd ._.
try:

cd "C:\Program Files\Java\jre7\bin\"
java.exe -version
pause
 

xFHAxWAR

New Member
Jul 29, 2019
17
0
0
well its a recognized command now heres the window and cmd
upload_2014-1-18_9-20-42.png

upload_2014-1-18_9-21-1.png
[DOUBLEPOST=1390058802][/DOUBLEPOST]and when I press a key it just goes away
 

yugic

New Member
Jul 29, 2019
26
0
0
ok good :D
then this should work:

cd "C:\Program Files\Java\jre7\bin\"
java.exe -Xms2048m -Xmx2048m -XX:permSize=128m -jar "C:\User\Mikd\Desktop\modpack^Direwolf20_1_6_4^1_0_11^Direwolf20Server\FTBServer-1.6.4-965.jar"
pause
 

xFHAxWAR

New Member
Jul 29, 2019
17
0
0
almost...
upload_2014-1-18_9-59-6.png

upload_2014-1-18_9-59-34.png
[DOUBLEPOST=1390061191][/DOUBLEPOST]to clarify i should double click server start and it should autofill a world, whitelist etc etc and then if i add some mod pack I just restart it by executing the executable jar file right?
 

yugic

New Member
Jul 29, 2019
26
0
0
because you are on windows i think you wont be able to mod the jar file while its open, so first stop the server, then mod it and the n start ServerStart again

can you check if C:\User\Mikd\Desktop\modpack^Direwolf20_1_6_4^1_0_11^Direwolf20Server\ is a valid folder (like you did for the java folder)
 

xFHAxWAR

New Member
Jul 29, 2019
17
0
0
im pretty sure the typo is "User" and its supposed to be "Users", il try that now and respond in a sec
upload_2014-1-18_10-15-7.png
 

yugic

New Member
Jul 29, 2019
26
0
0
what in the.. !"$#@B{$#24453"$# WHAT?!?!?
uhh...

try making a shortcut to java.exe, make it to run in the server folder then add parameters to run them..
do you know how to do that?
 

xFHAxWAR

New Member
Jul 29, 2019
17
0
0
Um shortcut yah but not the parameters, all my experience is in python and c++ not so much for java

Sent from my SAMSUNG-SGH-I467 using Tapatalk[DOUBLEPOST=1390062875][/DOUBLEPOST]would it basically be rewriting the path?[DOUBLEPOST=1390062973][/DOUBLEPOST]so that it would be
"C:\Users\Mikd\Desktop\modpack^Direwolf20_1_6_4^1_0_11^Direwolf20Server\FTBServer-1.6.4-965.jar"[DOUBLEPOST=1390063032][/DOUBLEPOST]woops. not FTBServer-1.6.4-965.ar instead
java.exe[DOUBLEPOST=1390063068][/DOUBLEPOST]instead of
cd "C:\Program Files\Java\jre7\bin\"
 

yugic

New Member
Jul 29, 2019
26
0
0
uhmm no that wont help.. ill try making it when i get on windows and then send it
 

yugic

New Member
Jul 29, 2019
26
0
0
I'm really sorry for the long delay because I was out of town.
But I did some searching and found that 64 bit command prompt can not run 32 bit java. So you might have the lastest java, but you don't have the 64 vit version if it.
 

xFHAxWAR

New Member
Jul 29, 2019
17
0
0
Its kool I'm in the middle of a htpc build that'll use a NAS as media hub/ mine craft server so i dont need this as an immediate fix, but I'll uninstall and reinstall java with 64 bit for win 7 and post screen shots if it doesn't work

Sent from my DROID RAZR using Tapatalk
 

Diggerwolf

New Member
Jul 29, 2019
14
0
0
- Right click computer icon
- choose properties
- click the advanced system settings link
- click environment variables
go to the system variables section and find the PATH environment. Select it and click edit. (If it doesn't exist, make it.)
- Add ";C:\Program Files\Java\jre7\bin" (without the " " and without the ; if it was empty.)

Put bat in same dir as the jar and change bat to use:

Code:
java Xms2048m Xmx2048m -XX:permSize=128m -jar FTBServer-1.6.4-965.jar 
pause
 

kittle

New Member
Jul 29, 2019
229
0
0
Id also recommend renaming the folder where you have the server:

From:
C:\Users\Mikd\Desktop\modpack^Direwolf20_1_6_4^1_0_11^Direwolf20Server\

to:
C:\Users\Mikd\Desktop\Direwolf20Server\

basically something shorter and without the ^ characters in it.