Skip to main content
Answer

custom package creation for database using jdbc driver

  • March 5, 2024
  • 4 replies
  • 140 views

Forum|alt.badge.img+1

Team, I’m building a custom package in intellij for database insert query, the code is working in intellij after importing sdk after build in gradle I see jdbc driver is missing from the A360 control room

Any insights would be grateful

Best answer by Tamil Arasu10

included the JDBC driver as a dependency. (build.gradle file)

 

For example:

dependencies {
    implementation 'your.jdbc.driver.group:jdbc-driver:version'
    // other dependencies
}
 

please replace 'your.jdbc.driver.group:jdbc-driver:version' with the actual coordinates of your JDBC driver.

4 replies

Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+18
  • Most Valuable Pathfinder
  • March 5, 2024

Ensure that the JDBC driver JAR file is included in your custom package. The JAR file should be added to the package and referenced properly in your code and build.gradle file to make sure that you have included the JDBC driver as a dependency

 

Forum|alt.badge.img+1

thanks for the input. Would you be able mention step by step procedure which would be grateful


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+18
  • Most Valuable Pathfinder
  • Answer
  • March 5, 2024

included the JDBC driver as a dependency. (build.gradle file)

 

For example:

dependencies {
    implementation 'your.jdbc.driver.group:jdbc-driver:version'
    // other dependencies
}
 

please replace 'your.jdbc.driver.group:jdbc-driver:version' with the actual coordinates of your JDBC driver.


Forum|alt.badge.img+1

Thanks. I’ve added this string 

implementation 'mysql:mysql-connector-java:8.0.25'

which is working as expected now