So I followed this guide:
And in addition I downloaded JDBC Thin driver from the Oracle database release from here:
http://www.oracle.com/technetwork/database/features/jdbc/default-2280470.html
Here’s the jars:
$ ls -l /Applications/oracle/product/instantclient_64/11.2.0.4.0/jdbc/lib
[email protected] 1 comlock staff 2091135 Jan 28 2014 ojdbc5.jar
[email protected] 1 comlock staff 2739616 Jan 28 2014 ojdbc6.jar
[email protected] 1 comlock staff 3698857 May 5 10:51 ojdbc7.jar
Then I added
classpath fileTree('/Applications/oracle/product/instantclient_64/11.2.0.4.0/jdbc/lib')
To buildscript dependencies in build.gradle
And then I added this in a service.js
var DriverClass = Packages.oracle.jdbc.OracleDriver;
And I end up with this error:
java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
What am I doing wrong?
Caveat: I’m not a java programmer.