Jump to content

Packaging MySQL (and the Mysql driver jar) into a script?


Colonel_Panic

Recommended Posts

I know this is probably a reach, but I'm curious if anyone's had any luck running custom scripts that rely on external JAR dependencies?

I want to connect to a MySQL database from my script so I have it include the mysql connector driver jar, but this isn't included when you export to a jar; so my script fails as it doesn't know what com.mysql.jdbc.Driver is.  

This will only be used locally, so no worries about this not being supported via the SDN.


All the stack overflow posts I can find point to exporting it as a "runnable external jar" so you can include external jars in the package.  But this obviously doesn't seem right as the script by itself isn't runnable.
 

Edited by Colonel_Panic
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...