-
Notifications
You must be signed in to change notification settings - Fork 146
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
load driver #74
Comments
i've removed sqlline 1.0.2 and installed from here |
I'd edit the |
It was a pain to do it this way, but I'm trying to use jar files and the following approach worked for me:
|
Wow, 5 years later and this is still a problem with sqlline.
The above won't work because the "-jar" option restricts the classpath to ONLY those files in the jar file that comes after the -jar parameter. see [1] below that says
Alternatively, if you omit the jdbcDriver.jar from the classpath, sqlLine will be unable to locate the driver, even if the driver is in the exact same folder as the sqlline jar....try it out, I did. You can get this to work if you rebuild the sqlline jar file with your own drivers (specified as additional dependencies in the pom.xml, of course), but what fun is that? We work with a gazillion different drivers and don't know which one you'll need on any given day. My point is that my comment above from Jan 7, 2019 still holds true....sure seems like this should be front-and-center in the documentation but I sure don't see it. |
i've installed sqlline 1.0.2-5 in my ubuntu
i launch it, write !scan and it give me:
yes 2.3 org.hsqldb.jdbc.JDBCDriver
yes 2.3 org.hsqldb.jdbcDriver
in /usr/share/java i also have
ojdbc6-11.2.0.4.jar
ojdbc.jar
what i've to do, or where i've to put, my oracle driver?
thanks
The text was updated successfully, but these errors were encountered: