In this post I am refering to the followint web page.


I am trying to connect to an MS Access database through an Applet.
If there is an easier way of doing this please let me know.

I have been having some problems with starting the rmiregistry and
connecting to the database and I hope that someone could help out.

Problem 1:
When executing : java RmiJdbc.RJJdbcServer sun.jdbc.odbc.JdbcOdbcDriver
I get a warning that tells me that the java.rmi.server.hostname property
can't be read (accessed denied), but it looks like the RmiJdbcServer still
gets bound in the rmi registry.

I did like what was written on the FAQ page, editing the java.policy file
but the
same error occoured.

Problem 2:
When executing the sample program from the web (localdemo and rjdemo) I
have no problem running the localdemo, but when I try to execute the rjdemo
I get the following error :
java.sql.SQLException: Unexpected exception; nested exception is:

I added some code to see what exactly was null. It turns out that the 'c' is

java.sql.Connection c =
DriverManager.getConnection("jdbc:rmi:"+rmiHost+"/"+url, "admin", "rjdemo");

If anyone has any insight on how to fix either of these problems it would
greatly appreciated.

Mike Jewson