Jump to content

Connecting to DB?


Recommended Posts

Posted (edited)

Sorry, thanks for the help.

Originally, the error was this,

java.sql.SQLException: No suitable driver found for jdbc:sqlite:/home/john/Desktop/RSDB/rsdb.db

However, after adding a random line of code (new pastebin here = https://pastebin.com/zedjm2qN )

This is the new error.

java.lang.ClassNotFoundException: org.sqlite.JDBC

 

In both cases, I have ensured that the driver is in the build path so.  Is this an osbot thing or am I dumb?t

 

EDIT:

Just tried to execute a python script from inside, and I got this message

Blocked permission: ("java.io.FilePermission" "<<ALL FILES>>" "execute")

 

This leads me to believe that JDBC isn't being blocked by OSbot, which means the alternative.  That I am just dumb.

 

EDIT2:

For any kind soul who is still willing to help, most up to date code https://pastebin.com/Ne4NG3WH

To get rid of the java.lang.ClassNotFound exception, had to change from jdbc 3.16.1 to 3.15.1 or something like that

Still getting the java.sql.SQLException: No suitable driver found for jdbc:sqlite:/home/john/Desktop/RSDB/rsdb.db error though

I guess I'll have to look into the PHP that LoudPacks was suggesting but at the same time plz no

Edited by Smuds

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...