Getting java.lang.NoClassDefFoundError: Could not initialize class oracle.jdbc.OracleDriver exception
问题 I am seeing some weird behavior when attempting to access a database using JDBC drivers. Here's the code fragment: LOGGER.debug("driver is " + driver); try { Class.forName(driver); LOGGER.debug("got driver"); } catch (Throwable t) { LOGGER.debug("throwable getting driver " + driver); t.printStackTrace(System.out); throw t; } When I run this, here's what I see in the stack trace. 08:20:00.417 [main] DEBUG - driver is com.sybase.jdbc4.jdbc.SybDriver 08:20:00.604 [main] DEBUG - throwable getting