HMCL-dev / HMCL

A Minecraft Launcher which is multi-functional, cross-platform and popular
https://hmcl.huangyuhui.net
GNU General Public License v3.0
7.01k stars 681 forks source link

2.3.x 不支持 Java 9 #222

Closed Yunalalala closed 7 years ago

Yunalalala commented 7 years ago

错误如下:

[23:41:26] [main/INFO] Initialized settings. [23:41:26] [main/INFO] Prepared background image in bgskin folder. [23:41:33] [AWT-EventQueue-0/INFO] Start generating launching command... [23:41:33] [Game Launcher/INFO] Make shell command [23:41:33] [Game Launcher/INFO] On making head command. [23:41:33] [Game Launcher/INFO] Java Version: null [23:41:33] [Game Launcher/INFO] Java Platform: 64 [23:41:33] [Game Launcher/INFO] System Platform: 64 [23:41:34] [Game Launcher/INFO] System Physical Memory: 4096 [23:41:34] [Game Launcher/ERROR] ---- Hello Minecraft! Crash Report ---- Version: 2.3.5.5 Time: 2017-10-12 23:41:34 Thread: Thread[Game Launcher,6,main]

Content: java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader at org.jackhuang.hellominecraft.utils.Utils.getURL(Utils.java:47) at org.jackhuang.hellominecraft.launcher.launch.AbstractMinecraftLoader.makeHeadCommand(AbstractMinecraftLoader.java:136) at org.jackhuang.hellominecraft.launcher.launch.AbstractMinecraftLoader.makeLaunchingCommand(AbstractMinecraftLoader.java:147) at org.jackhuang.hellominecraft.launcher.launch.GameLauncher.makeLaunchCommand(GameLauncher.java:118) at org.jackhuang.hellominecraft.launcher.views.MainPagePanel$10.run(MainPagePanel.java:392)

-- System Details -- Operating System: Mac OS X (x86_64) version 10.12.6 Java Version: 9, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation

Stzx commented 7 years ago

你好,可以请你尝试使用 Java 8 吗?因为目前还没有版本适配了 Java 9。

就像 #211 中所说的。

Yunalalala commented 7 years ago

好的,谢谢你的回复,我试试看:)

Silence Tai notifications@github.com 於 2017年10月13日 上午12:53 寫道:

你好,可以请你尝试使用 Java 8 吗?因为目前还没有版本适配了 Java 9。

就像 #211 https://github.com/huanghongxun/HMCL/issues/211 中所说的。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/huanghongxun/HMCL/issues/222#issuecomment-336301445, or mute the thread https://github.com/notifications/unsubscribe-auth/AfPBW0wBawgZ8XQajSdx9Jj_VlgCC3bRks5srphigaJpZM4P3rI1.

Yunalalala commented 7 years ago

不好意思呀,还是显示错误,用不用forge都是这样,我已经把原来的java 9删掉了换成java 8了。

[06:02:55] [main/INFO] Initialized settings. [06:02:55] [main/INFO] Prepared background image in bgskin folder. [06:03:30] [AWT-EventQueue-0/INFO] Start generating launching command... [06:03:31] [Game Launcher/INFO] Make shell command [06:03:31] [Game Launcher/INFO] On making head command. [06:03:31] [Game Launcher/INFO] Java Version: 1.8.0_144 [06:03:31] [Game Launcher/INFO] Java Platform: 64 [06:03:31] [Game Launcher/INFO] System Platform: 64 [06:03:31] [Game Launcher/INFO] System Physical Memory: 4096 [06:03:31] [Game Launcher/ERROR] ---- Hello Minecraft! Crash Report ---- Version: 2.3.5.5 Time: 2017-10-13 06:03:31 Thread: Thread[Game Launcher,6,main]

Content: java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader at org.jackhuang.hellominecraft.utils.Utils.getURL(Utils.java:47) at org.jackhuang.hellominecraft.launcher.launch.AbstractMinecraftLoader.makeHeadCommand(AbstractMinecraftLoader.java:136) at org.jackhuang.hellominecraft.launcher.launch.AbstractMinecraftLoader.makeLaunchingCommand(AbstractMinecraftLoader.java:147) at org.jackhuang.hellominecraft.launcher.launch.GameLauncher.makeLaunchCommand(GameLauncher.java:118) at org.jackhuang.hellominecraft.launcher.views.MainPagePanel$10.run(MainPagePanel.java:392)

-- System Details -- Operating System: Mac OS X (x86_64) version 10.12.6 Java Version: 9, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation

Silence Tai notifications@github.com 於 2017年10月13日 上午12:53 寫道:

你好,可以请你尝试使用 Java 8 吗?因为目前还没有版本适配了 Java 9。

就像 #211 https://github.com/huanghongxun/HMCL/issues/211 中所说的。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/huanghongxun/HMCL/issues/222#issuecomment-336301445, or mute the thread https://github.com/notifications/unsubscribe-auth/AfPBW0wBawgZ8XQajSdx9Jj_VlgCC3bRks5srphigaJpZM4P3rI1.

Stzx commented 7 years ago

你可能需要考虑更换启动器版本。你的版本较老,而且以前的分支也停止了维护。

Yunalalala commented 7 years ago

可是这个是一个整合包自带的启动器,如果用新版的话请问我需要怎么把整合包移过来呢?谢谢

Silence Tai notifications@github.com 於 2017年10月13日 上午7:55 寫道:

你可能需要考虑更换启动器版本。你的版本较老,而且以前的分支也停止了维护。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/huanghongxun/HMCL/issues/222#issuecomment-336357673, or mute the thread https://github.com/notifications/unsubscribe-auth/AfPBW4c-YDCLbR9B6QOUz1q1GT2b_Ibhks5srvtfgaJpZM4P3rI1.

Stzx commented 7 years ago

你直接替换启动器应该就可以了,具体会不会出现异常我也不太清楚,可以在替换之前备份原来的数据。

Stzx commented 7 years ago

2.7.8 已经支持 Java 9,如果你需要的话可以更换。