Docker Community Forums

Share and learn in the Docker community.

Docker Oracle DB not connecting to Java program

Hello,
I’m trying to connect my DB with eclipse. I’ve been trying to look for the issue everywhere but I didn’t find anything. I think I’m missing something in the syntax of the Java language but I’ve checked it multiple times.

Here is the Oracle DB connection:
Oracle 18c
Localhost
port 32118

100%•75%•50%

And here is a simple Java Class I created just to check the connection:

100%•75%•50%

And yes I have already placed the JAR file in the library, here is the version of the JAR file: ojdbc6-11.1.0

Finally,
I’m running everything on:

Mac OS Mojave(10.14.5)/ Macbook Pro Early 2015

Docker Desktop Community
Version 2.0.0.3

Eclipse Java EE IDE for Web Developers.
Version: Oxygen.3a Release (4.7.3a)
Build id: 20180405-1200

Docker port is 1521.

Thanks in Advance!!