Re: [Java-gnome-developer] naming and distribution issues
Brought to you by:
afcowie
From: Tiago C. <cog...@li...> - 2003-11-16 13:19:24
|
On Dom, 2003-11-16 at 10:47, Mark Howard wrote: > [following on from thread re placement of jni libs and jar files. > Original thread: > ] > > In answer to the suggestion of having a java-gnome-conf script generated > at install time so that users of the library can determine where jni > files and jar files are located on the current distribution: > > I think this is a bad idea - it adds unnecessary complexity. For > example, all native applications (non-java) choose to place all > libraries in /usr/lib -- they must have had similar discussions about > this a long time ago. Why should java be different? > I propose that jni libs should go in /usr/lib/jni (as is standard for > Debian) and JVMs should be modified to look in /usr/lib/jni and > /usr/local/lib/jni for jni libs. > IMO since we are using /usr/lib/jni for the java-to-native libs we should use /usr/lib/java for the jars, come to think of it python .py, .pyc and .pyo files go to /usr/lib/pythonX.X (at least in debian) so i think that java could use the same approach, yet thinking in that are already used we could also stick to /usr/share/java > Debian-java have had similar discussions in the past (which I failed to > follow since I had too much real work on), so I'm CC'ing there in the > hope of advice. > > One question I do have with my proposal though is what happens if > /usr/lib/jni has both libgnome-java0.8 and libgnome-java0.9 - How does > the jvm currently choose? Why not: ln -s libgnome-java0.8.so libgnome-java.so Tiago |