Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

J Builder

  Asked By: David    Date: Jan 23    Category: Java    Views: 461
  

I am facing a problem at Solaris Platform, while trying to ececute a piece
of code. The code is very simple...

public class Test {

static {
System.loadLibrary( "FnJNI" );
}

public static void main( String ar[] ){
System.out.println( "Hello World" );
}

}


When I excute this I get this error..

$ java Test
Exception in thread "main" java.lang.UnsatisfiedLinkError: no FnJNI in
java.libr
ary.path
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.<init>(Throwable.java:94)
at java.lang.Error.<init>(Error.java:50)
at java.lang.LinkageError.<init>(LinkageError.java:43)
at
java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:42)
at java.lang.ClassLoader.loadLibrary(Compiled Code)
at java.lang.Runtime.loadLibrary0(Runtime.java:473)
at java.lang.System.loadLibrary(System.java:778)
at <Unloaded Method>
$

I very well know that This error is dur to the reason that my program is not
able to FnJNI in the path. But my problem is that I have it in path, but
still I am not able to load it. I have checked mt path setting many a times.
I able to execute any .sh file from anywhere at the prompt, which is in the
same directory where libFnJNI.so is lying. Then why the prgram is not able
to find libFnJNI.so.....

Is it due to that I am trying to load FnJNI... whereas my library name is
libFnJNI.so .... but I have tried to load libFnJNI as well, I have tried to
load libFnJNI.so as well... but no result.. everytime I get the same kind of
error....

I have set the path in LD_LIBRARY_PATH variable also and have exported it..
but any thing is not working..

As the errors is saying that no FnJNI in java.library.path.... I have tried
to print this System.out.println( System.getProperty( "java.library.path" )
); It gives me that path which I set in LD_LIBRARY_PATH.

If anything which I am missing... and which is needed to load this library..
plz tell me asap....

Any other clue on this.. plz suggest...

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on J Builder Or get search suggestion and latest updates.




Tagged: