How can I make friends a JDBC driver for Oracle 12 and Java9? I use ojdbc and ucp and when compiling I get a bunch of errors like

Error: java: the unnamed module reads package oracle.jdbc.logging.runtime from both ojdbc8 and ucp

The package oracle.jdbc.logging.runtime really exists in both jar files

  • If you run the application through the class path, then everything should work. The second option is to merge ojdbc and ucp into one jark. - ZhekaKozlov
  • @ZhekaKozlov How to merge? Just unzip and zip back? - Anton Shchyrov
  • Well, yes, but of course not the fact that after that a valid jarka will come out. So I would first try to run everything through the classpath, this will definitely solve the problem. - ZhekaKozlov
  • @ZhekaKozlov I understand correctly that at the same time the application will run, but at the same time the IDE will not know anything about these packages and therefore no prompts? - Anton Shchyrov
  • Why? IDE can parse jar-files and get information about classes, methods, etc. from there. But Javadoc yes, will be absent if nothing is done. But you can also make source jarku by merging. Then everything will be OK. - ZhekaKozlov

0