Hi all!

im new when it comes to JAVA so i would appreciate any help with my connection code. Note that my ODBC is called "scoreboard".

At the moment i hav:

public final class Main
{
public static void main(final String[] args)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

String url = "jdbcdbc:scoreboard";

Connection conn = DriverManager.getConnection(url);
}

catch (Exception e)
{
System.err.println("Got an exception! ");
System.err.println(e.getMessage());
}
}

Im sure somebody will be able to point me in the right direction as i imagine its not difficult. Although ive been researching on the net and pretty much everywhere includes this code in some shape or form. Im wondering if its to do with using Sun's bridge driver with MS Access although thats just a guess.

GavW