redd_ztone Posted October 26, 2015 Share 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 Link to comment Share on other sites More sharing options...
Moderators AetherPirate Posted October 26, 2015 Moderators Share 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. Link to comment Share on other sites More sharing options...
redd_ztone Posted October 26, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Moderators AetherPirate Posted October 26, 2015 Moderators Share 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. Link to comment Share on other sites More sharing options...
redd_ztone Posted October 26, 2015 Author Share Posted October 26, 2015 1-4 and i got 8 gigs running win 10 Link to comment Share on other sites More sharing options...
Moderators AetherPirate Posted October 26, 2015 Moderators Share Posted October 26, 2015 Try 3GB and see how it behaves. Link to comment Share on other sites More sharing options...
redd_ztone Posted October 26, 2015 Author Share Posted October 26, 2015 what do i use for the script just a bat file? Link to comment Share on other sites More sharing options...
Moderators AetherPirate Posted October 26, 2015 Moderators Share Posted October 26, 2015 Yes a .bat will be fine. Link to comment Share on other sites More sharing options...
redd_ztone Posted October 26, 2015 Author Share Posted October 26, 2015 can you tell me the full script? Link to comment Share on other sites More sharing options...
Moderators AetherPirate Posted October 26, 2015 Moderators Share 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. Link to comment Share on other sites More sharing options...
redd_ztone Posted October 26, 2015 Author Share Posted October 26, 2015 my custom one also it doesnt open the serever Link to comment Share on other sites More sharing options...
Moderators AetherPirate Posted October 26, 2015 Moderators Share 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 Link to comment Share on other sites More sharing options...
redd_ztone Posted October 26, 2015 Author Share Posted October 26, 2015 java -xmx3g -jar forge-1.7.10-10.13.4.1448-1.7.10-universal nogui Link to comment Share on other sites More sharing options...
Moderators AetherPirate Posted October 26, 2015 Moderators Share 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. Link to comment Share on other sites More sharing options...
redd_ztone Posted October 27, 2015 Author Share Posted October 27, 2015 hmmm doesnt seem to work still Link to comment Share on other sites More sharing options...
Moderators AetherPirate Posted October 27, 2015 Moderators Share 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? Link to comment Share on other sites More sharing options...
redd_ztone Posted October 27, 2015 Author Share Posted October 27, 2015 i see comand prompt open then close but at first it was starting to gen land the crashing Link to comment Share on other sites More sharing options...
Moderators AetherPirate Posted October 27, 2015 Moderators Share 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now