小樱 发表于 2015/2/5 00:31

Minecraft我的世界服务端java启动报错WARN Unable to instantiate 的解决方案-nojline

报错一:
            现在是2015/02/04 周三 16点19分
*****************************************************************


                   正在启动,请稍候........


*****************************************************************
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated a
nd will likely be removed in a future release
2015-02-04 16:19:51,585 WARN Unable to instantiate org.fusesource.jansi.WindowsA
nsiOutputStream
2015-02-04 16:19:51,587 WARN Unable to instantiate org.fusesource.jansi.WindowsA
nsiOutputStream
2015-02-04 16:19:53,811 WARN Unable to instantiate org.fusesource.jansi.WindowsA
nsiOutputStream
2015-02-04 16:19:54,864 WARN Unable to instantiate org.fusesource.jansi.WindowsA
nsiOutputStream
2015-02-04 16:19:54,866 WARN Unable to instantiate org.fusesource.jansi.WindowsA
nsiOutputStream
Warning: version of CodeChickenLib, 1.1.1.101 is newer than request 1.1.1.98
*****************************************************************
                            谢谢使用!
*****************************************************************
请按任意键继续. . .


这是由于lib库比指定的1.1.1.98新的缘故。安装旧版即可解决
解决方案:http://bbs.itzmx.com/thread-8154-1-1.html




报错二:
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated a
nd will likely be removed in a future release
2015-02-04 16:09:48 Forge Mod Loader version 4.7.4.520 f
or Minecraft 1.4.7 loading
210 recipes
27 achievements
java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.ja
va:138)
      at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelaunc
her.java:33)
      at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1657)
      at org.bukkit.craftbukkit.Main.main(Main.java:18)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.fuseso
urce.jansi.internal.Kernel32
      at org.fusesource.jansi.internal.WindowsSupport.getConsoleMode(WindowsSu
pport.java:50)
      at org.bukkit.craftbukkit.libs.jline.WindowsTerminal.getConsoleMode(Wind
owsTerminal.java:176)
      at org.bukkit.craftbukkit.libs.jline.WindowsTerminal.init(WindowsTermina
l.java:80)
      at org.bukkit.craftbukkit.libs.jline.TerminalFactory.create(TerminalFact
ory.java:93)
      at org.bukkit.craftbukkit.libs.jline.TerminalFactory.get(TerminalFactory
.java:151)
      at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.<init>(Consol
eReader.java:140)
      at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.<init>(Consol
eReader.java:126)
      at net.minecraft.server.MinecraftServer.<init>(MinecraftServer.java:238)

      at ho.<init>(DedicatedServer.java:53)
      at net.minecraft.server.MinecraftServer.fmlReentry(MinecraftServer.java:
1723)
      ... 8 more


这是一个颜色控制导致的问题,这个问题会出现在windows server 2008 r2操作系统下

解决方案,加入--nojline启动参数即可
"Java" -Xincgc -Xmx512M -jar minecraft_server.jar --nojline




慢性腐蚀心灵 发表于 2015/2/5 00:31

页: [1]
查看完整版本: Minecraft我的世界服务端java启动报错WARN Unable to instantiate 的解决方案-nojline