AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  Running JOGL on AIX

    Posted 06/28/06 11:49 AM

    Originally posted by: SystemAdmin


    Hi,

    I was trying to run a jogl (java implementation of OpenGL) application on AIX. Everytime I compile, I get a "load ENOEXEC on shared library(s)" exception refering to my libjogl.so file(the jogl library). I was wondering if any one has tried this / knows a workaround. Thanks a lot,

    Kartik.
    #AIX-Forum


  • 2.  Re: Running JOGL on AIX

    Posted 06/28/06 06:02 PM

    Originally posted by: SystemAdmin


    Couple things to check 1) LIBPATH is set to point to where the shared library being loaded for the JNI portion is set and 2) How are you building the your shared library. For JNI on AIX all symbols within the shared library you are creating must be fully resoloved i.e. no run-time linking ... which I think is probably the problem here. Here's a link for instructions specific to AIX for building a shared library for JNI usage: http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was40.doc/html/Servlet_Engine_Web_Container/swg21047339.html
    #AIX-Forum


  • 3.  Re: Running JOGL on AIX

    Posted 06/29/06 03:31 PM

    Originally posted by: SystemAdmin


    Hey,

    Thanks for the reply. So to run these programs, what I do is first I compile the files with:

    javac -classpath jogl.jar *.java

    then I run it with

    java -Djava.library.path="./" program.class
    So are you saying I cannot link the library when I invoke java... to run the program? How then do I link it beforehand?

    Thanks a lot for the help,

    Kartik.

    #AIX-Forum


  • 4.  Re: Running JOGL on AIX

    Posted 07/14/06 03:57 PM

    Originally posted by: SystemAdmin


    Actually I'm referring to libjogl.so that is part of JOGL. libjogl.so is a shared object/runtime library. It sounds like when this library was created that it was created with runtime-linking enabled which is not supported by IBM's JAVA JNI. What needs to be done is to rebuild libjogl.so without runtime linking enabled i.e. all undefined symbols are explicitly resolved. You might want to check in the JOGL build scripts to make sure the -brtl flag is not specified. For example, in my simple JNI testcase I use makeC++SharedLib_r -bM:SRE to create my .so file.

    You might post the command line used to build the libjogl.so --- that way I could see exactly how libjogl.so is being used.
    #AIX-Forum