Hi,
My FBN assignment is fairly close to handing in, so I thought i'd have a
test run before checking though all my classes one last time to ensure i've not missed something stupidly. Anyhow, what I did was create three JAR files, FBNClient.jar, FBNServer.jar and FBNCommon.jar. Into the FBNClient I put simply the classes that were to produce my client. Into the FBNServer I put the class that started the server, and my rmi stubs. Into the Common I put everything else.
In the manifest for FBNClient.jar, I have:
When I do:
java -jar FBNClient.jar
The client seems to work fine.
So, I pretty much mirrored this in the manifest for FBNServer.jar:
Then I ran into some problems. My server, which was working fine when I was executing it from the directory that the class compile too, it was working fine. I had a policy file that granted AllPermission. etc. I was doing the following:
What i'm doing now (and i'm not totally sure that it's correct is):
However, i'm getting the following:
Now, obviously according to this I don't have access to the C:\db.db file that I do have access too when i'm executing the server from its classes directory. And I have no idea why. Do I need to give my jar files permissions or something? Maybe their own copy of the policy file? Is my java.rmi.server.codebase incorrect now that the classes are in a jar file?
I'm really confused and don't know where i'm going wrong. Any help is greatly appreciated.
Thanks
Gary
[Andrew: edited exception report so that horizontal scrolling is not required]
[ May 11, 2004: Message edited by: Andrew Monkhouse ]