users@glassfish.java.net

Re: Could not initialize class ... Why?

From: Bernhard Thalmayr <bernhard.thalmayr_at_painstakingminds.com>
Date: Wed, 23 Nov 2011 12:29:53 +0100

Looking at
http://staf.sourceforge.net/current/STAFJava.htm#Header_TestSTAFJavaSupport

If you run on Linux/Solaris you may use a sytemtool (like strace,truss)
which could tell you if STAF is uing JNI.

If it does you need to set 'native library path suffix' (or even proper
LD_LIBRARY_PATH for the user GF is running as -- depeding on the libs and
linker hints) to make it work within GF.

-Bernhard

On Wed, Nov 23, 2011 at 12:08 PM, <forums_at_java.net> wrote:

> I don't think so - I have tried to ask on the STAF list, but no reply yet
> (I
> asked yesterday). According to "Java User's Guide for STAF Version 3":
>
> STAF's Java support is provided in the JSTAF.jar
> - so I assumed that this is all I need, but I will do some more careful
> research. I have tried to place the file almost everywhere, even in
> .../glassfish/lib, where I have placed the MySQL connector JDBC (which
> works), but it always gives the same error.
>
> Thanks a lot for taking the time to help me!
>
>
>
> --
>
> [Message sent by forum member 'janpla']
>
> View Post: http://forums.java.net/node/**866705<http://forums.java.net/node/866705>
>
>
>


-- 
IT-Consulting Bernhard Thalmayr
- Painstaking Minds -
83620 Vagen (Munich area)
Germany