Oracle is not as far as I know has built-in mode for Java programs. Most likely, you need the Oracle JDBC driver to talk to the Oracle server somewhere.
Another approach that may be applicable to you is to run your code inside the JVM, which works in most modern Oracle installations.