Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trying to get JINI 2.0.002 Hello example running  RSS feed

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I decided to get back up to speed with the latest version of JINI so I could use JavaSpaces.
Downloaded and installed jini-2_0_002-src.zip (Jini Technology Starter Kit).
My j2sdk is version 1.4.2 - on WinXP prof.
I followed the directions in the Hello example file, including the:
Installing the dynamic policy granting feature by putting jsk-policy.jar in the JAVA_HOME/jre/lib/ext directory, populating the example/hello/lib directory and verifying the contents of the lib directory.
Executing the batch files in order for the "non-activatable example"
a. start scripts\jrmp-reggie
b. start scripts\confirming-jeri-server
c. scripts\client
a and b appear to work fine, b confirms that Hello server is ready.
c. produces exceptions like this:

I would love to hear from anybody who has gotten JINI 2.0.002 working.
Bill
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AHA! - got the Hello example running. It turns out that I had to put the jsk-policy.jar file in the
c:\Program Files\Java\j2re1.4.2_03\lib\ext
directory - NOT the j2skd directory that my PATH and JAVA_HOME point to. It must be using the windows registry to find that JRE!
How frustrating - naturally the docs didn't mention this tiny problem. I suppose it makes some sort of sense in that not all installations would have the SDK.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!