Jump to content

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


Recommended Posts

Posted (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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