Don't know, but welcome to JavaRanch I have edited your post with code tags and "disable smilies" to improve legibility. I think people would be better able to help if you post the exact text of the error message.
1. Use a type4 java driver. 2. Instead of blatantly pasting your code mention where do you think you might be going wrong.
3. Dont't just code..Think and code.
I am sending you the Code for oracle connectivity. Just make sure that you have the oracle jars in your classpath while trying to run it. Also change the UserName,Password and Other details in the Connection string.