September 2011
Intermediate to advanced
468 pages
15h 37m
English
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 ...Read now
Unlock full access