java – Visual Studio Cannot Reconcile OracleDataSource Import


I’m trying to import an OracleDatasource to connect to the OracleDriver and I believe it should be something like

import oracle.ojdbc.ojdbc8.OracleDataSource;

but the intellisense isn’t giving me the options I think should be available.

enter image description here

I installed the ojdbc8 package through the terminal and can see that the folders exist where I expected them to be.
enter image description here

If I look at the maven dependency paths in visual studio, these are also pointing where I’d expect them to –

enter image description here

I have also added these to the pom.xml

      <dependency>
          <groupId>com.oracle.ojdbc</groupId>
          <artifactId>ojdbc8</artifactId>
          <version>19.3.0.0</version>
      </dependency>

        <dependency>
            <groupId>com.oracle.ojdbc</groupId>
            <artifactId>ucp</artifactId>    
            <version>19.3.0.0</version>
        </dependency> 

Any suggestions what I should be looking for?

Leave a Reply

Your email address will not be published. Required fields are marked *