[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] Update to Subclipse on Debian wiki...

From: Andrew Vaughan <ajv-lists_at_netspace.net.au>
Date: 2006-08-01 23:21:18 CEST

On Wednesday 02 August 2006 00:49, Mark Phippard wrote:
> 4) When I have used Debian systems (most Linux systems) when the JavaHL
> library is installed it is not found by default. The library is
> installed into /usr/lib/jni by default. All Debian-aware JVM's are
> supposed to look in this folder for libraries, but at least the Sun one
> does not. So you either need to symlink the library into a location that
> the JVM is looking, or set the LD_LIBRARY_PATH environment variable prior
> to launching Eclipse.
>
I looked at this this morning.

The Debian java policy [0],[1] does require JVMs to look in /usr/lib/jni.

However testing this morning showed that only one out of the eleven JVM
environments I have installed actually honour that part of policy.

The only way I can see to fix Sun's and IBM's JVMs is replacing java with a
wrapper script setting LD_LIBRARY_PATH or -Djava.library.path=/usr/lib/jni.
This would only work for users who install JVMs adapted in this way, and
would be a significant break with the JVM's normal behaviour.

I will note that the script used for launching eclipse on Debian does pass
... -vmargs -Djava.library.path=/usr/lib/jni ... to eclipse, so that users
of Debian's eclipse packages should not have this problem. To me this seems
to be the better approach.

I plan to follow this up on the Debian-java mailing list [2] later today.
(Mark let me know if you wish to be cc-ed).

HTH
Andrew V.

[0]
http://www.debian.org/doc/packaging-manuals/java-policy/c36.html#policy-vm
[1] http://wiki.debian.org/Java/Draft
[2] http://lists.debian.org/debian-java/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Tue Aug 1 23:22:17 2006

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.