February 6, 2009 at 3:09 AM
First of all you did not give the what type of runtime error were occured.
Anyway first you set the CLASSPATH to the jar file of Oracle API.
Extract the zip file : C:\oracle\ora81\jdbc\lib\classes111.zip (ex)
and put the folders into the new location.Go to the new location.
Create the jar file : newlocation> jar -cvf *
finally set the classpath to the jar file.
After opening the connection to the oracle you should close the connection
by con.close() method.