1.18.1的服务器端启动不了,显示无法加载主类
但是这个文件已经设好了啊。。。。
求助
服务器端是用的官网下载的forge installer安装的,电脑上装了java17,还没装任何mod

但是这个文件已经设好了啊。。。。


求助

服务器端是用的官网下载的forge installer安装的,电脑上装了java17,还没装任何mod
本帖最后由 Qingraw 于 2022-2-3 23:18 编辑
-xms参数去掉
格式:
# Xmx and Xms set the maximum and minimum RAM usage, respectively.
# They can take any number, followed by an M or a G.
# M means Megabyte, G means Gigabyte.
# For example, to set the maximum to 3GB: -Xmx3G
# To set the minimum to 2.5GB: -Xms2500M
# A good default for a modded server is 4GB.
# Uncomment the next line to set it.
-Xmx4G
如果还是不行换成这个在改下试试
https://cowtransfer.com/s/d55cb32723224a
换成这个forge1.18.1端试试
-xms参数去掉
格式:
# Xmx and Xms set the maximum and minimum RAM usage, respectively.
# They can take any number, followed by an M or a G.
# M means Megabyte, G means Gigabyte.
# For example, to set the maximum to 3GB: -Xmx3G
# To set the minimum to 2.5GB: -Xms2500M
# A good default for a modded server is 4GB.
# Uncomment the next line to set it.
-Xmx4G
如果还是不行换成这个在改下试试
https://cowtransfer.com/s/d55cb32723224a
换成这个forge1.18.1端试试
本帖最后由 Qingraw 于 2022-2-3 23:30 编辑
确定是java17启动的么?java17下载:https://icraft.ren:90/study/jdk-17_windows-x64_bin.exe
qq多少我远程看下
HighPingWarrior 发表于 2022-2-3 23:26
这样做了以后还是一样的结果。。。。。
用了您的那个压缩包,还是显示无法加载主类
去掉了-Xms也没有用{: ...
确定是java17启动的么?java17下载:https://icraft.ren:90/study/jdk-17_windows-x64_bin.exe
qq多少我远程看下
mapp12237 发表于 2022-2-3 23:21
根据贴内信息
1.不要使用forge原装版 使用其他服务端
2.推荐mohist服务端 启动方法可以去搜下载:https://m ...
所以说forge原装版是不能用的吗。。。
我担心不是服务器端的问题,而是电脑上的其他设置之类的,或者是java
还需要什么其他信息来解决吗
HighPingWarrior 发表于 2022-2-3 23:30
所以说forge原装版是不能用的吗。。。
我担心不是服务器端的问题,而是电脑上的其他设置之类的,或者是ja ...
看楼上,我怀疑你java问题,换java17启动服务端:https://icraft.ren:90/study/jdk-17_windows-x64_bin.exe
Qingraw 发表于 2022-2-3 23:27
确定是java17启动的么?java17下载:https://icraft.ren:90/study/jdk-17_windows-x64_bin.exe
qq多少我 ...
怎么知道是不是java17启动的呢?
我电脑上装的是java17,但是还有一个免安装版的java8
一般默认都是用java17启动的,只有自己指定的时候才会用java8
HighPingWarrior 发表于 2022-2-3 23:32
怎么知道是不是java17启动的呢?
我电脑上装的是java17,但是还有一个免安装版的java8
一般默认都是用jav ...
cmd输入java -version截图我看下
Qingraw 发表于 2022-2-3 23:33
cmd输入java -version截图我看下
file:///C:/Users/WhiteGiver/Desktop/QQ%E6%88%AA%E5%9B%BE20220203233540.png
Qingraw 发表于 2022-2-3 23:33
cmd输入java -version截图我看下
不会在回复里发图片。。。。