SHARE
TWEET

Untitled

a guest Aug 18th, 2018 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. com.mysql.jdbc.Driver not found when trying to add SQL features in Jitsi
  2. IOException in readRegistry: java.io.EOFException
  3. java.lang.ClassNotFoundException: com.mysql.jdbc.Driver not found by [76]
  4.     at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
  5.     at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
  6.     at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
  7.     at java.lang.ClassLoader.loadClass(Unknown Source)
  8.     at java.lang.Class.forName0(Native Method)
  9.     at java.lang.Class.forName(Unknown Source)
  10.     at net.java.sip.communicator.impl.gui.main.MainFrame.init(MainFrame.java:301)
  11.     at net.java.sip.communicator.impl.gui.main.MainFrame.<init>(MainFrame.java:239)
  12.     at net.java.sip.communicator.impl.gui.UIServiceImpl.loadApplicationGui(UIServiceImpl.java:133)
  13.     at net.java.sip.communicator.impl.gui.GuiActivator.start(GuiActivator.java:129)
  14.     at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
  15.     at org.apache.felix.framework.Felix.activateBundle(Felix.java:1827)
  16.     at org.apache.felix.framework.Felix.startBundle(Felix.java:1744)
  17.     at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)
  18.     at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
  19.     at java.lang.Thread.run(Unknown Source)
  20.    
  21. import java.sql.*;
  22.  
  23. public class SQLFirstTime {
  24.  
  25.     public static void main(String[] args) {
  26.         try {
  27.                 Class.forName("com.mysql.jdbc.Driver");
  28.                 String url = "jdbc:mysql://localhost:3306/cdcol";
  29.                 Connection con = DriverManager.getConnection(url,"user", "pass");
  30.  
  31.                                 // ...
  32.  
  33.                 con.close();
  34.         } catch(SQLException sqlEx) {
  35.             System.out.println("Errore SQL");
  36.             sqlEx.printStackTrace();
  37.         } catch(ClassNotFoundException cnfEx) {
  38.             System.out.println("Class NOT FOUND!");
  39.             cnfEx.printStackTrace();
  40.  
  41.         }
  42.  
  43.     }
  44.  
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top