I am a begginer in Java, and I managed to create an app that stores (and also displays into a JTable) data into a database located on my computer. I made an executable .jar out of it and it works like a charm (on my PC). My problem comes when I am running that app on another PC.
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
}catch(ClassNotFoundException e){
JOptionPane.showMessageDialog(null, "Can't find driver");
System.exit(-1);
}
I always get that message dialog "Can't find driver". I am asking for an answer regarding how to add (somehow) the driver that I need into my executable .jar file in order to run properly on other PCs.