redd_ztone Posted October 26, 2015 Posted October 26, 2015 my server keeps crashing can i get some help? [08:54:36] [Server thread/INFO]: Starting minecraft server version 1.7.10[08:54:36] [Server console handler/ERROR]: Exception handling console inputjava.io.IOException: The handle is invalid at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_60] at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_60] at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_60] at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_60] at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_60] at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_60] at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_60] at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_60] at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_60] at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_60] at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_60] at net.minecraft.server.dedicated.DedicatedServer$2.run(DedicatedServer.java:97) [lv.class:?][08:54:36] [Server thread/WARN]: To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"[08:55:05] [Server thread/INFO]: Loading properties[08:55:05] [Server thread/INFO]: Default game type: SURVIVAL[08:55:05] [Server thread/INFO]: Generating keypair[08:55:06] [Server thread/INFO]: Starting Minecraft server on 25.101.75.241:25565[08:55:19] [Server thread/INFO]: Preparing level "world"[08:55:20] [Server thread/INFO]: Preparing start region for level 0[08:55:21] [Server thread/ERROR]: Encountered an unexpected exceptionjava.lang.NoClassDefFoundError: net/minecraft/client/multiplayer/WorldClient at net.minecraft.profiler.Profiler.func_76320_a(Profiler.java:64) ~[qi.class:?] at net.minecraft.world.World.func_147465_d(World.java:459) ~[ahb.class:?] at net.minecraft.world.gen.feature.WorldGenMinable.func_76484_a(WorldGenMinable.java:78) ~[ase.class:?] at net.minecraft.world.biome.BiomeDecorator.func_76795_a(BiomeDecorator.java:326) ~[aia.class:?] at net.minecraft.world.biome.BiomeDecorator.func_76797_b(BiomeDecorator.java:345) ~[aia.class:?] at net.minecraft.world.biome.BiomeDecorator.func_150513_a(BiomeDecorator.java:114) ~[aia.class:?] at net.minecraft.world.biome.BiomeDecorator.func_150512_a(BiomeDecorator.java:105) ~[aia.class:?] at net.minecraft.world.biome.BiomeGenBase.func_76728_a(BiomeGenBase.java:339) ~[ahu.class:?] at net.minecraft.world.biome.BiomeGenForest.func_76728_a(BiomeGenForest.java:198) ~[aif.class:?] at net.minecraft.world.gen.ChunkProviderGenerate.func_73153_a(ChunkProviderGenerate.java:421) ~[aqz.class:?] at net.minecraft.world.gen.ChunkProviderServer.func_73153_a(ChunkProviderServer.java:279) ~[ms.class:?] at net.minecraft.world.chunk.Chunk.func_76624_a(Chunk.java:1055) ~[apx.class:?] at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:190) ~[ms.class:?] at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:131) ~[ms.class:?] at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:101) ~[ms.class:?] at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:265) ~[MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:235) ~[MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:258) ~[lt.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:387) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?]Caused by: java.lang.ClassNotFoundException: net.minecraft.client.multiplayer.WorldClient at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:101) ~[launchwrapper-1.11.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_60] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_60] ... 20 more Quote
Moderators AetherPirate Posted October 26, 2015 Moderators Posted October 26, 2015 [08:54:36] [Server thread/WARN]: To start the server with more ram, laundh it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar" How much ram are you giving the server i the .bat or.sh file you use to launch your server? Also, if you are not already doing this, add the nogui switch. Quote
redd_ztone Posted October 26, 2015 Author Posted October 26, 2015 how do i do that do i have to make a script? cause all i do is click the jar file and it opens Quote
Moderators AetherPirate Posted October 26, 2015 Moderators Posted October 26, 2015 You need to launch it from a script. For example: java -xmx3g -jar (name of your forge jar) nogui this allocates 3GB of ram for java to use for your server. This may it may not be best for you, depending upon how much ram you have, and how many players you expect to connect. Quote
redd_ztone Posted October 26, 2015 Author Posted October 26, 2015 1-4 and i got 8 gigs running win 10 Quote
Moderators AetherPirate Posted October 26, 2015 Moderators Posted October 26, 2015 Try 3GB and see how it behaves. Quote
redd_ztone Posted October 26, 2015 Author Posted October 26, 2015 what do i use for the script just a bat file? Quote
Moderators AetherPirate Posted October 26, 2015 Moderators Posted October 26, 2015 Yes a .bat will be fine. Quote
redd_ztone Posted October 26, 2015 Author Posted October 26, 2015 can you tell me the full script? Quote
Moderators AetherPirate Posted October 26, 2015 Moderators Posted October 26, 2015 Use my example up above. Just substitute the name of your forge universal jar file. Probably a good time to ask what modpack you are running. Quote
redd_ztone Posted October 26, 2015 Author Posted October 26, 2015 my custom one also it doesnt open the serever Quote
Moderators AetherPirate Posted October 26, 2015 Moderators Posted October 26, 2015 (edited) make sure you put that bat file in the same directory as the renamed forge universal jar that it is calling. if that still doesn't work, can you post the contents your batch file? Edited October 26, 2015 by AetherPirate Quote
redd_ztone Posted October 26, 2015 Author Posted October 26, 2015 java -xmx3g -jar forge-1.7.10-10.13.4.1448-1.7.10-universal nogui Quote
Moderators AetherPirate Posted October 26, 2015 Moderators Posted October 26, 2015 change to java -xmx3g -jar forge-1.7.10-10.13.4.1448-1.7.10-universal.jar nogui Needs the .jar extension at the end of the filename. Quote
redd_ztone Posted October 27, 2015 Author Posted October 27, 2015 hmmm doesnt seem to work still Quote
Moderators AetherPirate Posted October 27, 2015 Moderators Posted October 27, 2015 Need a bit more to go on. Does it launch and crash, and produce a log? Or something else? What are you seeing? Quote
redd_ztone Posted October 27, 2015 Author Posted October 27, 2015 i see comand prompt open then close but at first it was starting to gen land the crashing Quote
Moderators AetherPirate Posted October 27, 2015 Moderators Posted October 27, 2015 Does the spelling of the forge jar in your batch file exactly match the actual file name? Is the batch file in the same directory as that file? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.