Jump to content

Linux server "Could not find the main class"


PJUmbreon

Recommended Posts

I'm working on setting up my private server to run Pixelmon and Tale of Kingdoms for me and my friend to play on it. However, when I try starting up the server with Forge only, I get this error:

[ec2-user@ip-10-252-138-154 MinecraftServer]$ sudo java -Xmx512M -Xms512M -jar minecraft_server.jar nogui
Exception in thread "main" java.lang.NoClassDefFoundError: aki
Caused by: java.lang.ClassNotFoundException: aki
        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)
Could not find the main class: net.minecraft.server.MinecraftServer. Program will exit.

Any way to fix this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • REI not yet fully initialized!  Step 6/6 (100%) PluginStageWatcher 1 My friend tried to go to single player and it doesnt work We didnt add anything to FTB StoneCraft 3 and after redownloading it still kept the same problem
    • So the world dosen't even show on my world's list, it's totally broken, right?
    • Hey guys, I have following error for like three hours when joining my friends GPORTAL-Server: Connection Lost Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: index: 9, lenght: 955 (expected: range(0, 30))   So could anybody help me out with this one? Log: Minecraft Log PS: I already updated Java, reinstalled the Modpack, restarted my PC, updated my Browser [...]
    • Seemingly fixed, I had to delete the advancements json file for every player in the server as this seemed to be the error. After deleting the files and reloading the server, we were able to join back in.
    • Incompatible mods found! net.fabricmc.loader.impl.FormattedException: Some of your mods are incompatible with the game or each other! A potential solution has been determined, this may resolve your problem:      - Replace mod 'Moonlight Lib' (moonlight) 1.21-2.16.0 with version 1.21-2.17.0 or later. More details:      - Mod 'Supplementaries' (supplementaries) 1.21-3.0.14-alpha requires version 1.21-2.17.0 or later of mod 'Moonlight Lib' (moonlight), but only the wrong version is present: 1.21-2.16.0!     at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:51)     at net.fabricmc.loader.impl.FabricLoaderImpl.load(FabricLoaderImpl.java:196)     at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:146)     at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)     at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) this si my error code, and yes i have the latest version of moonlight lib
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.