[OpenAFS] Error while running JAFS

Jeffrey Altman jaltman@secure-endpoints.com
Thu, 24 Nov 2005 10:35:37 -0500


This is a cryptographically signed message in MIME format.

--------------ms010705070300070508080500
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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 me@something.com 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 <psomogyi@gamax.hu>/* 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
>     OpenAFS-info@openafs.org
>     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/>
> 

--------------ms010705070300070508080500
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJXzCC
AwowggJzoAMCAQICAw7NrTANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE
ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv
bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDUwNTI3MTc0NzU3WhcNMDYwNTI3MTc0NzU3
WjBzMQ8wDQYDVQQEEwZBbHRtYW4xFTATBgNVBCoTDEplZmZyZXkgRXJpYzEcMBoGA1UEAxMT
SmVmZnJleSBFcmljIEFsdG1hbjErMCkGCSqGSIb3DQEJARYcamFsdG1hbkBzZWN1cmUtZW5k
cG9pbnRzLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKjPyrF+rdjOUSK/
bWwZHdx5p1+y6iiCd4vvYEVDxouYFp5C/fZEWm5n45ubBUbMSUI1MAZN6ooEoH09UTj6BXhM
S8B987ls81dKOIUphTF2jOzq8gsFmeA15yHMRAD20LqUWeLyvYk8FCNQw+dsKMMhX+W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