Executing the Demonstrations and Tests

We are going to run our demonstrations and tests now. To do that, we will again edit our code, as needed, and then compile and run it. In a command prompt, change directories to Chapter7. Edit TestOracleJavaSecure.java if not already, placing the correct password for appusr and correct host and port number in the Oracle connection string, near the top.

    private static String appusrConnString =         "jdbc:oracle:thin:appusr/password@localhost:1521:Orcl";

Compile the code with these commands, or just the second which will automatically compile the first (be sure the first line of OracleJavaSecure.java is commented, the line to CREATE the Java structures in Oracle database).

javac orajavsec/OracleJavaSecure.java ...

Get Expert Oracle and Java Security: Programming Secure Oracle Database Applications with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.