why on earth would you use odbc at all in this, just use jdbc directly
forget about the registering of odbc sources and substitute these two
lines in the example
Class.forName("oracle.jdbc.OracleDriver");
conn=DriverManager.getConnection("jdbc:oracle:thin:@//[server]:1521/[database]",\
"scott","tiger");
where [server] is your oracle server
and [database] is your database instance/schema
this will work on any OS