Can anyone explain this error message

Explain this error message please:
11 Replies
JavaBot
JavaBot7mo ago
This post has been reserved for your question.
Hey @userexit! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
userexit
userexitOP7mo ago
Couldn't connect to database: No suitable driver found for jdbc:sqlite:data/stib.db Code:
package Repository.Database;
import Config.ConfigManager;
import java.sql.*;

public class DBManager {
private Connection connection;

private DBManager() {
String url = "jdbc:sqlite:" + ConfigManager.getInstance().getProperty("db.url");
try {
connection = DriverManager.getConnection(url);
} catch (SQLException e) {
System.out.println("Couldn't connect to database: " + e.getMessage());
}
}

public Connection getConnection() {
return connection;
}

public static DBManager getInstance() {
return DBManagerHolder.instance;
}

private static class DBManagerHolder {
private static DBManager instance = new DBManager();
}
}
package Repository.Database;
import Config.ConfigManager;
import java.sql.*;

public class DBManager {
private Connection connection;

private DBManager() {
String url = "jdbc:sqlite:" + ConfigManager.getInstance().getProperty("db.url");
try {
connection = DriverManager.getConnection(url);
} catch (SQLException e) {
System.out.println("Couldn't connect to database: " + e.getMessage());
}
}

public Connection getConnection() {
return connection;
}

public static DBManager getInstance() {
return DBManagerHolder.instance;
}

private static class DBManagerHolder {
private static DBManager instance = new DBManager();
}
}
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
userexit
userexitOP7mo ago
nah thats fine the issue was on dependencies i smly had to reloadp roject maven @borgrel since ur here do u have any idea how in a normal java project i can use jfx without launching directly aj avafx project throguh intellij
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
userexit
userexitOP7mo ago
what is the javaFX initialisation point
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
userexit
userexitOP7mo ago
so i need dependencies nothing else ? thats all i dont even need to install javafx?
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
userexit
userexitOP7mo ago
im usingm aven i have dependencies yet i get exceptions Caused by: java.lang.IllegalAccessError: class com.sun.javafx.fxml.FXMLLoaderHelper (in unnamed module @0x4516cd1) cannot access class com.sun.javafx.util.Utils (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.util to unnamed module @0x4516cd1
JavaBot
JavaBot7mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server