We did test our software on a network but all the machines were running Windows 98. However, nothing except Java and JINI were used for development. Thus, as far as the development point is concerned, theoretically our software did run on all sorts of machines. We didn't have enough facilities in our institute to use Sun Solaris, Linux or Gx machines.
First of all, make sure you have the complete and latest JINI Kit from the Sun site. Secondly, make sure of one more thing that you have the latest version of Java JDK (ie 1.3) and there are no mix ups of ver 1.2 and 1.3. One of the problems we faced was because I installed Netscape 6 (that came with JDK 1.3) on my machine over an existing JDK 1.2 and the DLLs / files got mixed up.
Another helpful hint is to install the JINI packages in c:\files. The default location that's discussed in examples / documentation. Its helpful because the SERVICES software uses this as default and you need not worry about setting this.
I am also assuming that all your machines have been assigned an IP address. If that's not the case, you need to do some more settings.
The minimum you need to run is RMID, HTTP and Reggie. Remember, RMID is a re-activatable service. This means that, once RMID is started and Reggie is started on top of it, RMID remembers this setting. Next time and onwards, when you run RMID, it automatically runs Reggie itself and no explicit mentioning is required. If you run reggie, you will get two copies of Reggi in the same RMID - something you didn't want. The state of RMID is saved in a "log" file and deleting that log folder makes things come back to normal. We didn't know this in the beginning and thus faced several instances of head ache.
Its better to start JINI from its GUI in the first try. Assuming that you are using c:\files, the following command is helpful:
java -cp c:\files\jini1_1\lib\jini-ext.jar;c:\files\jini1_1\lib\jini-examples.jar com.sun.jini.example.launcher.StartService
This is written in a single line as one command. Its better to save this in a bat file and run it. Hopefully, this will start the SERVICES gui. Now, click on File -> Open and browse to JINI1_1/ example/ launcher and select one of the properties file (according to your OS).
In the RUN panel, click on RMID and after some time on Web Server; you may need to change the prot of the webserver (the default one is 8081). Next from the Reggie tab, write the IP of the machine in Codebase where hostname is written. Go back to the Run panel and run reggie also.
If after some time you see no errors, go to LookupBrowser tab, and change the codebase machine name to your machine's IP. And from the Run panel click on LookupBrowser. If the app runs, then every thing is fine.
You will almost never have problem in running HTTP server. The problem is always with Reggie / RMID. Remember the RMID point that it automatically starts Reggie (if you successfully start Reggie once). So, if RMID doesn't start in future the problem might be with reggie.
Almost all the problems in the case of JINI are because of INCOMPATIBILITY of files (always try a reinstall) and a few of the are because of setting machine's IP address. A few problems arise because of incorrect execution policy. For my case, the default one worked but it didn't with Windows 2000. I don't know whether this is helpful or not. It depends on the amount of KHAWARI you have already done.
Some links that were very usable for us were:
http://developer.java.sun.com/developer/products/jini/execpolicy.html http://www.enete.com/download/index.html#_nuggets_ (very very helpful)
Do tell me if some specific error messages are still there. Together we may find the solution.
Thanks.
Ali.