Total Pageviews

Sunday, August 31, 2014

oracle.jdbc.OracleDriver while running ANT command. it means missing ojdbc6.jar file under java


ant command error for oracle.jdbc.OracleDriver

below error in detail

seed-ldap-recon-jobs:
     [echo] ----> Seeding LDAP Reconciliation schedule jobs
     [java] Exception in thread "Main Thread" java.lang.ClassNotFoundException:                                                       oracle.jdbc.OracleDriver
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:171)
     [java]     at oracle.iam.scheduler.seed.SeedSchedulerData.startSeeding(Seed                                                      SchedulerData.java:738)
     [java]     at oracle.iam.scheduler.seed.SeedSchedulerData.main(SeedSchedule                                                      rData.java:116)
     [java] Java Result: 1

solution
download ojdbc6.jar driver from oracle site and place it under JAVA_HOME/jre/lib/ext/

re-run ANT command

No comments:

Post a Comment