Shaji: The problem you are having is not related to AFS. In order for a Java class to interface with non-Java libraries, it must use the Java Native Interface (JNI). The JNI support must be built separately for every platform on which you wish to use the Java class libraries. The error you are receiving from the Java VM is that the JNI library "JAFS.DLL" or "libjafs.so" on UNIX/Linux cannot be found. The library cannot be found in the PATH designated by the java.library.path variable.
Jeffrey Altman Shaji Kalidasan wrote: > Hi, > > I downloaded the Java classes from the location where you directed, then > I compiled the Java files and when I tried to run the testAFS.java it > reports the following error. > > D:\workspace\jafs>*java testAFS [EMAIL PROTECTED] password servername 10* > Exception in thread "main" java.lang.UnsatisfiedLinkError: no jafs in > java.library.path > at java.lang.ClassLoader.loadLibrary(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > at org.openafs.jafs.AFSLibraryLoader.<clinit>(Token.java:455) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Unknown Source) > at org.openafs.jafs.Token.<clinit>(Token.java:111) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Unknown Source) > at testAFS.main(testAFS.java:635) > > > I first ran this in my windows machine (Windows 2000 Professional), even > though the target machine is Linux. What settings do I need to do prior > to running this application or what is the pre-requisite for running > this test program on both environments or Do I need to include any other > libraries? > > As I am new to AFS, I need your valuable help in figuring this out. > Please guide me where I am going wrong. > > Thank you, > Shaji > > */Peter Somogyi <[EMAIL PROTECTED]>/* wrote: > > Hi, > > On Tuesday 22 November 2005 18.01, Shaji Kalidasan wrote: > > Hi, > > > > I am in the process of developing a J2EE web based AFS ID password > reset > > tool for my organization, currently we have it working with PHP & > Perl. > > > > I am looking for any implementation of Java API for AFS, I > searched the > > internet but I could not find one. > > JAFS is in openafs-1.4.1/src/JAVA. > Please read earlier discussions in the mail archives. > > Peter > > _______________________________________________ > OpenAFS-info mailing list > [email protected] > https://lists.openafs.org/mailman/listinfo/openafs-info > > > ------------------------------------------------------------------------ > Yahoo! Music Unlimited - Access over 1 million songs. Try it free. > <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/> >
smime.p7s
Description: S/MIME Cryptographic Signature
