java吧 关注:1,240,045贴子:12,711,521
  • 3回复贴,共1

我开mc出现的报错,这个是为啥啊

只看楼主收藏回复

[10:35:04] [AWT-EventQueue-0/INFO] Start generating launching command...
[10:35:05] [Game Launcher/INFO] Building process
[10:35:05] [Game Launcher/INFO] Logging in...
[10:35:05] [Game Launcher/INFO] Detecting libraries...
[10:35:05] [Game Launcher/INFO] Unpacking natives...
[10:35:09] [Game Launcher/INFO] *** Make shell command ***
[10:35:09] [Game Launcher/INFO] On making head command.
[10:35:09] [Game Launcher/INFO] Java Version: null
[10:35:09] [Game Launcher/INFO] Java Platform: 64
[10:35:09] [Game Launcher/INFO] System Platform: 64
[10:35:09] [Game Launcher/INFO] System Physical Memory: 8115
[10:35:09] [Game Launcher/ERROR]
---- Hello Minecraft! Crash Report ----
Version: 2.4.1.6
Time: 2024-01-22 10:35:09
Thread: Thread[Game Launcher,6,main]
Content:
java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
at org.jackhuang.hellominecraft.util.Utils.getURLString(Utils.java:56)
at org.jackhuang.hellominecraft.launcher.core.launch.AbstractMinecraftLoader.makeHeadCommand(AbstractMinecraftLoader.java:133)
at org.jackhuang.hellominecraft.launcher.core.launch.AbstractMinecraftLoader.makeLaunchingCommand(AbstractMinecraftLoader.java:144)
at org.jackhuang.hellominecraft.launcher.core.launch.GameLauncher.makeLaunchCommand(GameLauncher.java:110)
at org.jackhuang.hellominecraft.launcher.util.HMCLGameLauncher$1.run(HMCLGameLauncher.java:88)
-- System Details --
Operating System: Windows 7 (amd64), 6.1
Java Version: 18.0.1, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
1月 22, 2024 10:35:09 上午 org.jackhuang.hellominecraft.launcher.util.CrashReporter lambda$reportToServer$10
严重: Failed to post HMCL server.
java.net.UnknownHostException: huangyuhui.duapp.com
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:564)
at java.base/java.net.Socket.connect(Socket.java:633)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:178)
at java.base/sun.net.http://www.http.HttpClient.openServer(HttpClient.java:498)
at java.base/sun.net.http://www.http.HttpClient.openServer(HttpClient.java:603)
at java.base/sun.net.http://www.http.HttpClient.<init>(HttpClient.java:246)
at java.base/sun.net.http://www.http.HttpClient.New(HttpClient.java:351)
at java.base/sun.net.http://www.http.HttpClient.New(HttpClient.java:373)
at java.base/sun.net.http://www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1309)
at java.base/sun.net.http://www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1287)
at java.base/sun.net.http://www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)
at java.base/sun.net.http://www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1057)
at org.jackhuang.hellominecraft.util.NetUtils.post(NetUtils.java:116)
at org.jackhuang.hellominecraft.util.NetUtils.post(NetUtils.java:102)
at org.jackhuang.hellominecraft.util.NetUtils.post(NetUtils.java:98)
at org.jackhuang.hellominecraft.util.NetUtils.post(NetUtils.java:94)
at org.jackhuang.hellominecraft.launcher.util.CrashReporter.lambda$reportToServer$10(CrashReporter.java:140)
at org.jackhuang.hellominecraft.launcher.util.CrashReporter.access$lambda$1(CrashReporter.java)
at org.jackhuang.hellominecraft.launcher.util.CrashReporter$$Lambda$2.run(Unknown Source)
at java.base/java.lang.Thread.run(Thread.java:833)


IP属地:河北1楼2024-01-22 10:36回复
    没找到服务,你的url或是端口是不是写错了


    IP属地:河北来自Android客户端3楼2024-01-22 15:04
    回复
      没有找到对应的服务器,说白了没打通网络


      IP属地:江苏来自iPhone客户端4楼2024-01-22 16:30
      回复
        看样子是网络不通。估计是到服务器不通吧。


        IP属地:安徽5楼2024-01-23 17:22
        回复