JDBC connection fails

KrisM

Member
I try to connect to a progress database from java, starting with this code from the documentation:

Class.forName("com.ddtek.jdbc.openedge.OpenEdgeDriver");

I use %DLC%\java\openedge.jar (OpenEdge 10.2A02).

This statement raises following error:

Exception in thread "main" java.lang.NoClassDefFoundError: com/ddtek/util/UtilDummyPrintWriter
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at {myclass}.connectdb(jdbcqueries.java:49)
at {myclass}.<init>(jdbcqueries.java:22)
at {myclass}.main(jdbcqueries.java:42)
Caused by: java.lang.ClassNotFoundException: com.ddtek.util.UtilDummyPrintWriter
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 5 more

I would appreciate any suggestions.
 

rstanciu

Member
try to add these extra jar's in your classpath:
PJCP=.:$DLC/java/openedge.jar:$DLC/java/base.jar:$DLC/java/util.jar;
 
Top