Jump to content
  • 0

Could not find the main class error in Debian


Question

Posted

Launcher/pack Version:

Operating System: Debian

Version of Java: 1.6.0_18

Description of Problem:

When I try to run my Tekkit server using command

java -Xms512m -Xmx512m /home/server/Tekkit.jar nogui


it gives me error message.

Error Messages:


Exception in thread "main" java.lang.NoClassDefFoundError: /home/server/Tekkit/jar

Caused by: java.lang.ClassNotFoundException: .home.server.Tekkit.jar

    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)

    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)

    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)

Could not find the main class: /home/server/Tekkit.jar. Program will exit.



Link to pastebin of log:





root@MinecraftTechnica:/# java -Xms512m -Xmx512m /home/server/Tekkit.jar nogui

Exception in thread "main" java.lang.NoClassDefFoundError: /home/server/Tekkit/jar

Caused by: java.lang.ClassNotFoundException: .home.server.Tekkit.jar

    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)

    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)

    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)

Could not find the main class: /home/server/Tekkit.jar. Program will exit.

root@MinecraftTechnica:/# java -Xms512m -Xmx512m /home/server/Tekkit.jar nogui

root@MinecraftTechnica:/# java -version

java version "1.6.0_18"

OpenJDK Runtime Environment (IcedTea6 1.8.10) (6b18-1.8.10-0~lenny2)

OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

The tekkit.jar isnt corrupted, redownloaded it couple times.

Its Tekkit 2.1.1 btw

Any help would be appreciated ;)

2 answers to this question

Recommended Posts

  • 0
Posted

*facepalm* Thank you so much :D

On the other hand It works, but I got so many errors. Is Tekkit even supported on debian?

Here's the pastebin of me trying to run it:

http://pastebin.com/vzsBxn5F

2 gigs of ram and proper CPU should be enough :/

EDIT: I fixed it by installing 1.7.0 java.

EDIT2: It causes more problems <_<"

 

java.lang.IllegalArgumentException: Slot 179 is already occupied by ee.BlockEEDevice@578da21f when adding buildcraft.zeldo.ChunkLoader.BlockChunkLoader@138ece21

    at net.minecraft.server.Block.<init>(Block.java:175)

    at net.minecraft.server.Block.<init>(Block.java:197)

    at net.minecraft.server.BlockContainer.<init>(BlockContainer.java:18)   

    at buildcraft.zeldo.ChunkLoader.BlockChunkLoader.<init>(BlockChunkLoader.java:11)

    at net.minecraft.server.mod_zAdditionalPipes.ModsLoaded(mod_zAdditionalPipes.java:210)

    at net.minecraft.server.ModLoader.init(ModLoader.java:706)

    at net.minecraft.server.ModLoader.Init(ModLoader.java:1357)

    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:102)

    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:411)

    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

10:30:29 [sEVERE] Unexpected exception

java.lang.IllegalArgumentException: Slot 179 is already occupied by ee.BlockEEDevice@578da21f when adding buildcraft.zeldo.ChunkLoader.BlockChunkLoader@138ece21

    at net.minecraft.server.Block.<init>(Block.java:175)

    at net.minecraft.server.Block.<init>(Block.java:197)

    at net.minecraft.server.BlockContainer.<init>(BlockContainer.java:18)

    at buildcraft.zeldo.ChunkLoader.BlockChunkLoader.<init>(BlockChunkLoader.java:11)

    at net.minecraft.server.mod_zAdditionalPipes.ModsLoaded(mod_zAdditionalPipes.java:210)

    at net.minecraft.server.ModLoader.init(ModLoader.java:706)

    at net.minecraft.server.ModLoader.Init(ModLoader.java:1357)

    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:102)

    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:411)

    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

>java.lang.RuntimeException: ModLoader has failed to initialize.

    at net.minecraft.server.ModLoader.ThrowException(ModLoader.java:1292)

    at net.minecraft.server.ModLoader.init(ModLoader.java:715)

    at net.minecraft.server.ModLoader.Init(ModLoader.java:1357)

    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:102)

    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:411)

    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

Caused by: java.lang.IllegalArgumentException: Slot 179 is already occupied by ee.BlockEEDevice@578da21f when adding buildcraft.zeldo.ChunkLoader.BlockChunkLoader@138ece21

    at net.minecraft.server.Block.<init>(Block.java:175)

    at net.minecraft.server.Block.<init>(Block.java:197)

    at net.minecraft.server.BlockContainer.<init>(BlockContainer.java:18)

    at buildcraft.zeldo.ChunkLoader.BlockChunkLoader.<init>(BlockChunkLoader.java:11)

    at net.minecraft.server.mod_zAdditionalPipes.ModsLoaded(mod_zAdditionalPipes.java:210)

    at net.minecraft.server.ModLoader.init(ModLoader.java:706)

    ... 4 more

10:30:29 [sEVERE] Unexpected exception

java.lang.RuntimeException: ModLoader has failed to initialize.

    at net.minecraft.server.ModLoader.ThrowException(ModLoader.java:1292)

    at net.minecraft.server.ModLoader.init(ModLoader.java:715)

    at net.minecraft.server.ModLoader.Init(ModLoader.java:1357)

    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:102)

    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:411)

    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

Caused by: java.lang.IllegalArgumentException: Slot 179 is already occupied by ee.BlockEEDevice@578da21f when adding buildcraft.zeldo.ChunkLoader.BlockChunkLoader@138ece21

    at net.minecraft.server.Block.<init>(Block.java:175)

    at net.minecraft.server.Block.<init>(Block.java:197)

    at net.minecraft.server.BlockContainer.<init>(BlockContainer.java:18)

    at buildcraft.zeldo.ChunkLoader.BlockChunkLoader.<init>(BlockChunkLoader.java:11)

    at net.minecraft.server.mod_zAdditionalPipes.ModsLoaded(mod_zAdditionalPipes.java:210)

    at net.minecraft.server.ModLoader.init(ModLoader.java:706)

    ... 4 more

>Exception in thread "Thread-3" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

    at java.util.ArrayList.rangeCheck(ArrayList.java:604)

    at java.util.ArrayList.get(ArrayList.java:382)

    at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:397)

    at org.bukkit.craftbukkit.util.ServerShutdownThread.run(ServerShutdownThread.java:14)

EDIT3: I managed to fix it by opening /buildcraft/config/additionalpipes.cfg and editing Chunk loader to value 180.

You can close it now.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...