I am working on java project to insert and fetch data from postgresql database. While using jbdc I am getting error
"java.lang.ClassNotFoundException: org.postgresql.Driver at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at SqlConnection.sql_connection(SqlConnection.java:29) at ServerConnection.run(ServerConnection.java:205) at java.lang.Thread.run(Thread.java:745) "
FYI I am using multiple source files. Main function is defined in one file and I am using postgresql connection in another file