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.
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
same error occoured.
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
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center