[OpenAFS] JAFS - Java Documentation for AFS

Manfred Paul manne.paul@web.de
Mon, 21 Nov 2005 10:49:44 +0100


Hi,

i have a problem with the JAFS stuff. On the one hand is the
java doc from the source code, but this did not work as it should.
On the other hand is the wiki http://grand.central.org/twiki-downtime.html
which is down since september. Is anybody able to give me some information
about the java implemantation of openafs and how to get it work in my
application. (only a java based gui, that holds tokens, request these ect.)
It sould be like the Windows one (only a part of it).

It there any way to get this working?

A simple program, that sould only generate a Token Object

import org.openafs.jafs.Cell;
import org.openafs.jafs.AFSException;
import org.openafs.jafs.Server;
import org.openafs.jafs.Token;
import org.openafs.jafs.User;

 public class AFSTokens
 {

         private static Cell cell;
         private static Token token;

         public static void main(String[] args) throws Exception
         {

                 token  = new Token("myUsername", "myPassword", "myCell");
        	 cell      = new Cell(token);
         }

 }


exits with this error message:

AFSException: Error Code: 180500; Message: error reading cell database
** Can't determine local cell name!
Exception in thread "main" AFSException: Error Code: 180500; Message: error
reading cell database

It was called:

java -cp .:/home/manfred/Build/openafs-1.4.0/src/JAVA/libjafs/jafs.jar
-Djava.library.path=/home/manfred/Build/openafs-1.4.0/lib AFSTokens

bye manne

-------------------------------------------------------