Jump to content

Adding MYSQL java connector


xxxgamer

Recommended Posts

Hey guys,

 

Anyone out there that knows how to add the mysql jdbc connector to their mod? I have tried just adding the jar file into coremods but obviously it wont run due to an incorrect manifest,

Anyone know how to load up the jdbc connector so the server has access to it?

Link to comment
Share on other sites

  • 3 weeks later...
  • 9 months later...

I spent a stupid long amount of time trying to figure this out for a mod I'm developing.

The only reason I post now is because I found an answer by simply searching for "load external library" and I hope no one will ever have to waste half an hour searching for this like I have.

 

All that is required is to place the jdbc connector jar in the mods folder, and forge will load it as an external library, allowing your code to utilize it.

 

EDIT: Oh yeah, that previous answer doesn't work because ILibrarySet is deprecated last I checked.

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.