public static void main(String[] args) {
new TestQuery();
}
}
2) Save the following code as CompileAndRun.bat. You will have to amend the paths accordingly:
set BASE=C:\Development\Web\oracle-base.com\Articles\Java
set PATH=C:\Java\jdk1.4\bin;C:\Development\Web\oracle-base.com\Articles\Java
set CLASSPATH=C:\Development\Web\oracle-base.com\Articles\Java;ORACLE_HOME\jdbc\lib\Classes12.zip
javac TestQuery.java
java TestQuery
pause
3) If you don't have the Classes12.zip file on your machine you can find it in the ORACLE_HOME\jdbc\lib directory of your server. It contains all the thin driver code to allow connections to Oracle from Java.
4) Double-click on the batch file and look at the results.
Bookmarks