Windows .exe Custum Server .bat and Luncher .bat file error

Status
Not open for further replies.

drago87

New Member
Jul 29, 2019
5
0
0
After i formated my computer i started getting some problems with my FTB Server bat that i used.

The server bat file is this

java -Xms4096M -Xmx4G -XX: PermSize=4096m -jar ftbserver.jar

no space betvene -XX: and PermSize.
: and P without space gives :p

If i click it the cmd windows pops up for like a mili second but if i run it from the cmd i get

Invalid initial heap size: -Xms4096M
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

The custom FTB Luncher bat looks like this

javaw -Xmx3072m -Xms3072m -jar "C:\Spel\FTB_Launcher.exe"

if i run it from the Desktop or with cmd i get

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

in a window standard error popup.

Both worked before the format.

I got 16GB ram and using win7 i have the latest 32x and 64x java installed
 

Woodopriest

New Member
Jul 29, 2019
35
0
0
Hi there

Just add pause to the end of you bat file, it has helped me alot for finding errors during launch.
The bat commands will stop and wait for keyboard input, and you can have a look at what you have written wrong.

hope it helps :-D

Edit:
I've reread you post and...
try this: java -server -Xms4G -Xmx4G -XX PermSize=1024M -jar ftbserver.jar

the -server is just for java optimized for running server, don't know if it's needed anymore
 

drago87

New Member
Jul 29, 2019
5
0
0
tried but i get enother error

Error: missing 'server' JVM at 'C:\Program Files (x86)\Java\jre7\bin\server\jvm.dll'
Please install or use the JRE or JDK that contains these missing components.

Hovewer i have notised a problem with my computer if i right click on a file and Open with->choose default program i get the file does not have a program associated with it for performing this action.

So i'm going to reinstall windows and see. Maby that will fix the minecraft problem too.
 
Status
Not open for further replies.