Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoClassDefFoundError: com/github/secretx33/sccfg/Config #2

Closed
Slime-Error opened this issue Dec 7, 2021 · 2 comments
Closed

Comments

@Slime-Error
Copy link

Slime-Error commented Dec 7, 2021

I built your framework into a library .jar with all its dependencies satisfied but I'm getting this error
java.lang.NoClassDefFoundError: com/github/secretx33/sccfg/Config
the error is found at
at me.nixeee.magictools.MagicTools.onEnable(MagicTools.java:19)
but the enable looks like this
PrivateVaultStorage storageconfig = Config.getConfig(PrivateVaultStorage.class);
Config.registerConfig(storageconfig);

Any idea what is going on with this class not found error?

@Slime-Error
Copy link
Author

when I get home I will go through the entire library and see if there are any missing class imports

@SecretX33
Copy link
Owner

SecretX33 commented Dec 8, 2021

You cannot register a config provided by the library as all configs instantiated by the library are already registered automatically, so this code would throw ConfigOverrideException.

As for building the library by hand, I would not advise that since you would have to provide all sc-cfg transitive dependencies by hand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants