Hi I am facing the below issue while executing Sparksql Job(to read the Oracle table) in IntellJ IDE.
Issue:
Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
I have already added the ojdbc7.jar file in my project in IntelliJIdea ProjectStructure==>Modules==> Dependencies ==> + ==> Added ojdbc7.jar file.
In build.gradle file i have given the below statement.
"runtime files('libs/ojdbc7.jar')"
After i compiled my project i could see the jar file in libs folder that i have created in my project.
If i execute the Job in IDE I am facing this issue. Can any one please help me on the same.