Sunteți pe pagina 1din 2

Instruction Manual

Database connectivity to java:-


Create a database in ms access by clicking on corner left icon and click on new and create a new
database named jadu and browse it to project folder.

Create table tree with field names members, s1, s2, pubkey, prikey, grokey, memname and pass.

Create another table tree1 with fields memname and time_diff.

For creating DSN follow these steps:-

Go to CONTROL PANEL> ADMINISTRATIVE TOOLS> ODBC DATA SOURCES(32-bit)> System DSN> ADD

Select MICROSOFT ACCESS DRIVER(*.mdb, *.accdb) >Finish

Data source name:- Ckey

Choose directory where database file is and then select file. In our case it is c:> jadugar> jadu.accdb.
>OK.

Creating Ad-Hoc Network


Create an ad-hoc network on any one system and assign an Ip address as: 192.168.0.1

All the other systems should be connected to the network created.

At client side's files add ip address of server side in the code line Naming.lookup(rmi://IP address of
server//key) in every file.

Now network connectivity is done.

At Server side:-
 Open cmd
 write command:- Start rmi registry.
 Open new cmd and go to the folder in which your project files are.
 Foe eg:- If your files are in a folder named "project" which is in c drive then type commands
as:-
 c: \ Users> cd/
 c:> cd project
 c:\ project > java AddServer(Server will start)
At Client side:-
Open cmd

Go into the folder in which the project files are, repeating the same steps of server side.

Write command "java AddClient".

S-ar putea să vă placă și