I would like with my Java application (netbeans) to access the database that is on the server, but this was complicated because it is through a Linux machine.
Could someone explain to me how to do this?
The connection class I use is:
public Connection LigaBD() {
try{
System.out.println("Entrei !!!");
Class.forName("org.sqlite.JDBC");
conn = DriverManager.getConnection("jdbc:sqlite:pesquisa.db");
System.out.println("Passei a segunda fase !!!");
}
catch(Exception e){
e.printStackTrace();
}
System.out.println("Nao consegui entrar na BD");
return null;
}
Accessing locally I can, the worst is mapping in Linux, I'm new to Linux.