Solved Java not recognized

  • 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

Delphia1222

New Member
Jul 29, 2019
6
0
0
Hello, Im currently running Windows 8, With 10.00GB Ram, And trying to run a FTB Ultimate Server but every time i ever time I Try to run the .Bat it gives me back:

"C:\Users\(Private)\Desktop\Server>java -Xms512M -Xmx1G -jar ftbserver.jar
' java' is not recognized as an internal or external command,
operable program or batch file."

Any help would be MUCH appreciated because this problem has been haunting me for as long as i can remember, and i thought i Would give the community a shot :)
 

cjm721

New Member
Jul 29, 2019
734
0
1
Install java. If it is installed then use the full java path such as C:\ProgramFiles\java\bin\java (check your path as it is probably not what i typed)
 

Delphia1222

New Member
Jul 29, 2019
6
0
0
Install java. If it is installed then use the full java path such as C:\ProgramFiles\java\bin\java (check your path as it is probably not what i typed)
Thanks for the fast reply, and yes i do have java and i checked what my java path is (Wasnt the one you gave me) so i put in the path that it uses but it didnt change anything.
 

cjm721

New Member
Jul 29, 2019
734
0
1
"F:\Program Files\Java\jre7\bin\java.exe" -jar ftbserver.jar nogui

Does it look like that?
 

Delphia1222

New Member
Jul 29, 2019
6
0
0
No it looks like this "C:\Program Files (x86)\Java\jre7\bin -Xms512M -Xmx1G -jar ftbserver.jar
pause"
 

cjm721

New Member
Jul 29, 2019
734
0
1
needs to look like mine. The stuff between " " is physicaly in quotes, and you have to have the java.exe also.


Try this if above does not make sense:

Code:
"C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xms512M -Xmx1G -jar ftbserver.jar
 
  • Like
Reactions: Delphia1222

Delphia1222

New Member
Jul 29, 2019
6
0
0
Oh..... Wow.... You have help me fix a problem that has been a pain in the butt for the longest time :) But now i have another problem that i would really not like to make another thread for... im trying to add more RAM as im going to need more but every time i try i try it tells me "Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit."

Also, Im trying to add 3GB of RAM and my PC is 64Bit With 10.00GB Incase you needed to know


-Del
 

cjm721

New Member
Jul 29, 2019
734
0
1
You are probbaly using 32 bit java. Go to oracles website and get the latest jre/jdk for java 7 64 bit