Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

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.

  • Author

Don't have any @SideOnly tags, it's supposed to be server-only, so I just set acceptableRemoteVersions = "*" in the @Mod

The KeyPair and RSARead classes are mostly just encrypting and decrypting stuff, using java.security

Then please post the code of the class.

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

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

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

  • Author

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

  • Author

Got it, worked now. Had to delete the classes folder in the build folder and re-build. Thanks to everyone for the support!

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.