Jump to content

[SOLVED][1.7.10] ClassDefNotFoundException


Bydon873

Recommended Posts

I'm building a votifier that runs on forge to use on my own server, since I'm going pure forge and no cauldron. While testing in IDEA, the mod compiled and ran successfully, however, when I build it (with /gradlew build) and run it on a server, I get a ClassDefNotFoundException. My project structure is:

 

src

-main

--java

---com.direnode.forgevotifier

----cryptography

-----KeyGenerator

-----RSA

-----RSARead

----handler

-----ConfigurationHandler

-----PlayerHandler

----reference

and some other stuff, follows that same order

 

Latest forge log: http://pastebin.com/MB1Cwp0S

Crash log: http://pastebin.com/Ua9zmXZu

 

At first it also happened with the KeyGen class, but I generated them in the IDEA server and just transferred it.

Link to comment
Share on other sites

Did you reference any of the client classes or use some @SideOnly?

You should not do that on Dedicated Server.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

I think I found the problem. While searching the .jar to reply to

Does it work if you install it in a dedicated server without all those other mods?

 

If you browse through your built jar, can you find the RSARead class in expected path?

 

-TGG

I noticed that the cryptography package is called "Cryptography" instead of "cryptography" so when it looks for cryptography.KeyGen, or RSARead, it can't find it

It's strange, since the package name is cryptography, and the package of the classes is set to com.direnode.forgevotifier.cryptography

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.

Announcements



×
×
  • Create New...

Important Information

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