|
Well, it gives me: java.lang.ClassNotFoundException: org.postgresql.Driver at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at Database.<init>(Database.java:16) at Gateway.main(Gateway.java:19) But I think you're right... But my problem is, that if I try to run it with the classpath flag, and also the classpath environment vartiable, it fails. The path is correct. I believe that I have overseen something, but I have looked over the setup a dusin of times now, and I can't spot it. Dave Cramer wrote: 5 will get you 10 that your class path isn't setup correctly. Try adding ex.printStackTrace() to the catch handler for Class.forName |