Jump to content

Failed to load Main-Class error on Vanilla 1.2.5 Server with Forge 3.3.7.135


Recommended Posts

Posted

I'm certain this is an invalid operator error; I would appreciate any guidance you could provide to help me narrow down the root cause.

 

I'm attempting to manually install minecraftforge-server-3.3.7.135 into a vanilla minecraft_server.jar

 

I've followed the instructions at http://minecraftforge.net/wiki/Installation/Server

 

I'm working on a MAC running OS 10.7.4 with Java 1.6.0_33

 

  Reveal hidden contents

 

 

I've manually extracted the minecraft_server.jar file to a working folder.

 

  Reveal hidden contents

 

 

And done the same for minecraftforge-server-3.3.7.135. zip

 

 

  Reveal hidden contents

 

 

I then copied the Forge files to server files and verified that everything copied.

 

  Reveal hidden contents

 

 

I packaged it back up.

 

  Reveal hidden contents

 

 

Moved the server file into place and ran it.

 

  Reveal hidden contents

 

 

It did not execute far enough to generate a ModLoader.txt (assuming it still will being integrated) and the stack trace info I have is above in spoilers.

 

I downloaded a fresh minecraftServer.jar file, ran the file before extracting to ensure it worked then completed the steps described above.

 

In looking through the previous posts and searching other sources, the only way to generate a "Failed to load Main-Class manifest attribute from

minecraft_server.jar" error is for the manifest to be messed up or for files to be missing.

 

I've retried all of this deleting the META-INF folder per earlier comments about installing mod loader as a dependancy.

 

Thoughts on where to go next? Back to school is a valid answer, but I'm hoping for something a little more tactical.

 

Thanks.

 

JD

 

 

Posted
  On 6/19/2012 at 12:03 AM, joeld98 said:

I'm certain this is an invalid operator error; I would appreciate any guidance you could provide to help me narrow down the root cause.

 

I'm attempting to manually install minecraftforge-server-3.3.7.135 into a vanilla minecraft_server.jar

 

I've followed the instructions at http://minecraftforge.net/wiki/Installation/Server

 

I'm working on a MAC running OS 10.7.4 with Java 1.6.0_33

 

  Reveal hidden contents

 

 

I've manually extracted the minecraft_server.jar file to a working folder.

 

  Reveal hidden contents

 

 

And done the same for minecraftforge-server-3.3.7.135. zip

 

 

  Reveal hidden contents

 

 

I then copied the Forge files to server files and verified that everything copied.

 

  Reveal hidden contents

 

 

I packaged it back up.

 

  Reveal hidden contents

 

 

Moved the server file into place and ran it.

 

  Reveal hidden contents

 

 

It did not execute far enough to generate a ModLoader.txt (assuming it still will being integrated) and the stack trace info I have is above in spoilers.

 

I downloaded a fresh minecraftServer.jar file, ran the file before extracting to ensure it worked then completed the steps described above.

 

In looking through the previous posts and searching other sources, the only way to generate a "Failed to load Main-Class manifest attribute from

minecraft_server.jar" error is for the manifest to be messed up or for files to be missing.

 

I've retried all of this deleting the META-INF folder per earlier comments about installing mod loader as a dependancy.

 

Thoughts on where to go next? Back to school is a valid answer, but I'm hoping for something a little more tactical.

 

Thanks.

 

JD

 

There's your problem on a server you DO NOT delete the META-INF Folder

Posted

Sorry, I was not clear.

 

I have tried all of these steps twice.

 

Pass One without deleting META-INF

 

Pass Two with deletion of META-INF

 

Same results in both cases.

 

Thanks for the timely reply. It also helps narrow it down to before the step when the manifest would be evaluated so that eliminates a lot of noise.

Posted

Do you get Karma for answering your own questions?

 

I've started the server using "exec java -verbose -Xmx1G -Xms1G -cp minecraft_server.jar net.minecraft.server.MinecraftServer"

 

When using the command line jar utility my resulting .jar file had a new manifest that contained:

 

Manifest-Version: 1.0

Created-By: 1.6.0_33 (Apple Inc.)

 

Instead of the original:

 

Manifest-Version: 1.0

Main-Class: net.minecraft.server.MinecraftServer

 

More practice is in my future; I was on the right track earlier attempting to rebuild the manifest from a supplied text file but got confused on what the last parameter did.

 

Thanks again Texasjake95; that was enough of a hint for me to dig in a bit further and figure it out.

 

-JD

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.

Announcements



×
×
  • Create New...

Important Information

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