T24: ERROR in Java Program

78 views
Skip to first unread message

Rama chandran

unread,
Nov 25, 2009, 3:24:07 AM11/25/09
to jb...@googlegroups.com
Hi All,

I m Ram. I m getting the following error message while running a java
code in jbase.

Code:
import com.jbase.javaobjex.*;

public class testselect
{

public static void main(String[] args)
{

try
{
System.out.println("Ram");
Jbase jB = new Jbase();
System.out.println("Ram");
Jconnection jC = jB.connect();
System.out.println("Ram");
Jedi jF = jC.open("F.USER");
JselectList jSel = jF.select();
String key = jSel.readnext();
while (key != "")
{
key = jSel.readnext();
System.out.println("key=" + key);
}
}
catch (Exception e)
{
System.out.println(e);
}
}
}

----------------------------------
Config:
System : AIX proapp01 3.5 00C2ACFF4C00
RELEASE Information : Major 5.0 , Minor 5 , Patch 0132 (Change 54733)
R07 model bank
----------------------------------
Error:
jsh t24 ~/TEST.BP -->java testselect

Unable to locate the jBASE JNI library 'libjbase.so'
Ensure that the path to this library is set correctly
On this system, this requires the environment variable:

SVR4/Solaris/Linux - LD_LIBRARY_PATH
AIX - LIBPATH
HPUX - SHLIB_PATH

to include the library location.

Can't find library jbase (libjbase.so or .so) in
sun.boot.library.path or java.library.path
sun.boot.library.path=/usr/java14/jre/bin
java.library.path=/usr/java14/jre/bin:/usr/java14/jre/bin/classic:/usr/java14/jre/bin:/opt/jbase505/lib:/opt/jbase505/java/jre/lib:/usr/java14/jre/bin/sovvm:/usr/lib
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't find
library jbase (libjbase.so or .so) in sun.boot.library.path or
java.library.path
sun.boot.library.path=/usr/java14/jre/bin
java.library.path=/usr/java14/jre/bin:/usr/java14/jre/bin/classic:/usr/java14/jre/bin:/opt/jbase505/lib:/opt/jbase505/java/jre/lib:/usr/java14/jre/bin/sovvm:/usr/lib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2044)
at java.lang.Runtime.loadLibrary0(Runtime.java:824)
at java.lang.System.loadLibrary(System.java:910)
at com.jbase.javaobjex.JbaseNative.loadlib(JbaseNative.java:200)
at com.jbase.javaobjex.JbaseNative.valid(JbaseNative.java:127)
at com.jbase.javaobjex.JbaseNative.<init>(JbaseNative.java:92)
at com.jbase.javaobjex.Jbase.<init>(Jbase.java:69)
at testselect.main(testselect.java:12)
jsh tsgr07 ~/TEST.BP -->

HELP ME THANKS IN ADVANCE

Thanks & Regards
Ram

pat

unread,
Nov 25, 2009, 10:53:07 AM11/25/09
to jBASE
Have you tried setting :

export LIBPATH=$JBCRELEASEDIR/lib:/usr/ccs/lib:/usr/lib:/bib

in this users '.profile', then 'login to the user' before retesting

[ The clue is in the error text displayed ]

Pat.
Reply all
Reply to author
Forward
0 new messages