How to add OJDBC6.jar in build.gradle file?

亡梦爱人 提交于 2019-12-19 22:32:06

问题


I am connecting to Oracle Db in my application and trying to build the app with gradle build. I am unable to access the OJDBC6.jar from gradle build. can some one please, let me know that, how can we add the ojdbc6.jar into the build.gradle file.


回答1:


You should be able to load your OJDBC dependency as a runtime requirement as follows:

dependencies {
    runtime files('path/to/OJDBC6.jar')
}


来源:https://stackoverflow.com/questions/33246214/how-to-add-ojdbc6-jar-in-build-gradle-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!