import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; class App { public static void main(String[] args) { try { String url = "jdbc:sqlite:database.sqlite"; Connection conn = DriverManager.getConnection(url); System.out.println("OK"); conn.close(); }catch(SQLException e) { System.err.println("Hiba! Az elérés sikertelen!"); System.err.println(e.getMessage()); } } }