Your oracle jdbc driver is missing, or classpath is not defined. I attached a sample to open connection to a oracle service desk database using jdbc.
I've written that kind of java code matching servernames (search codes) written in a text file with CMDB and writing result to another text file, so i can see missing ones It's because you can only search one by one using client's search facility.
I couldn't attach oracle jdbc driver (ojdbc14.jar) because it's size is greater than 1 MB. You need to find it.