To use JDBC in Kotlin, you will also need to add the appropriate driver for the database you are using, for example, for sqlite you need to add org.xerial:sqlite-jdbc as a dependency in your build.gradle file. import java.sql.DriverManager // Create a connection to the database val url = "jdbc:sqlite:myDatabase.db" val connection = DriverManager.getConnection(url) // Create a statement val statement = connection.createStatement() //INSERT/SELECT/CREATE // Close the statement and connection statement.close() connection.close()