[Pljava-dev] JNI_CreateJavaVM

From: lyle at lcrcomputer(dot)net (Lyle Giese)
To:
Subject: [Pljava-dev] JNI_CreateJavaVM
Date: 2006-09-25 19:08:35
Message-ID: 45182933.6020507@lcrcomputer.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev


Below is what I think are the revelent parts of the enviroment and
ld.so.conf for compiling PL/Java as per the Wiki. This is as close as I
can come unless I can find out what specifically the compile process is
looking for that it obviously cann't find to make it not include
JNI_CreateJavaVM during the make process.

Thanks,
Lyle

JAVA_BINDIR=/usr/lib/jvm/jre/bin
JAVA_HOME=/usr/lib/jvm/jre
JAVA_ROOT=/usr/lib/jvm/jre
JRE_HOME=/usr/lib/jvm/jre
LC_CTYPE=en_US.UTF-8
LD_LIBRARY_PATH=/usr/lib/jvm/java-1.4.2-sun-1.4.2.05/jre/lib/i386:
/usr/lib/jvm/java-1.4.2-sun-1.4.2.05/jre/lib/i386/client:/usr/lib/jvm/java-1.4.2-sun-1.4.2.05/jre/lib/i386/native_threads

PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/local/pgsql/bin:
/usr/local/pgsql/bin:/etc/alternatives/java_sdk_1.4.2/bin

/etc/ld.so.conf:

/usr/X11R6/lib64/Xaw95
/usr/X11R6/lib64/Xaw3d
/usr/X11R6/lib64
/usr/X11R6/lib/Xaw95
/usr/X11R6/lib/Xaw3d
/usr/X11R6/lib
/usr/x86_64-suse-linux/lib64
/usr/x86_64-suse-linux/lib
/usr/local/lib
/usr/openwin/lib
/opt/kde/lib
/opt/kde2/lib
/opt/kde3/lib
/opt/gnome/lib
/opt/gnome2/lib
/lib64
/lib
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/openwin/lib64
/opt/kde/lib64
/opt/kde2/lib64
/opt/kde3/lib64
/opt/gnome/lib64
/opt/gnome2/lib64
/usr/local/pgsql/lib
/usr/lib/jvm/java-1.4.2-sun-1.4.2.05/jre/lib/i386
/usr/lib/jvm/java-1.4.2-sun-1.4.2.05/jre/lib/i386/client
include /etc/ld.so.conf.d/*.conf

Lyle Giese wrote:

> As far as I can tell, I am following these instructions to the letter,
> but no go. What specifically is the make process looking for that it
> can not find that would cause this? I susposse it's quite possible
> that I am pointing this to the wrong directories.
>
> I will also try on Wednesday to get another person here in our
> department to look over what I have done to look for typos or other
> issues.
>
> Thanks,
> Lyle
>
> Thomas Hallgren wrote:
>
>>JNI_CreateJavaVM is the entry point to the Java VM. You need to set up your loader
>>environment so that the loader finds the VM. See
>>http://wiki.tada.se/wiki/display/pljava/Posix+Installation on LD_LIBRARY_PATH and ld.so.conf.d
>>
>>Regards,
>>Thomas Hallgren
>>
>>
>>Lyle Giese wrote:
>>
>>
>>>I am trying to install Compiere w/Postgres on a SuSE 9.2 computer. All
>>>was going well until I got to the line:
>>>
>>>java -cp
>>>/home/postgres/product/8.1/jlib/deploy.jar:/home/postgres/product/8.1/jdbc/lib/postgresql-8.1-407.jdbc3.jar
>>>org.postgresql.pljava.deploy.Deployer -install -user compiere -database
>>>cptst01
>>>
>>>It errors out with:
>>>org.postgresql.java.PSQLException: ERROR: could not load library
>>>"/usr/local/pgsql/lib/pljava.so": /usr/local/pgsql/lib/pljava.so:
>>>undefined symbol: JNI_CreateJavaVM
>>>
>>>I looked in the build tree for pljava1.3.0 and in pljava.so it shows:
>>>
>>> U JNI_CreateJavaVM
>>>
>>>So I assume that this means this function is not implemented or not found.
>>>
>>>I get no errors when running make on pljava(I can post the make log, but
>>>there are no errors, warning etc.). I am doing this on SuSE 9.2 with
>>>java 1.4.2-sun with devel & source libraries loaded from CD.
>>>
>>>So what silly little thing did I miss?
>>>
>>>Thanks,
>>>Lyle Giese
>>>
>>>
>>
>>_______________________________________________
>>Pljava-dev mailing list
>>Pljava-dev at gborg.postgresql.org
>>http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>>
>>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Pljava-dev mailing list
>Pljava-dev at gborg.postgresql.org
>http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20060925/49bb1cc8/attachment.html>

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Markus Schaber 2006-09-25 19:51:31 [Pljava-dev] UDT send and receive
Previous Message Markus Schaber 2006-09-25 19:05:01 [Pljava-dev] Sorry, wrong patch...