Re: [Java-gnome-developer] naming and distribution issues
Brought to you by:
afcowie
From: R. A. R. D. <riv...@ya...> - 2003-11-16 18:38:52
|
--- Mark Howard <mh...@ca...> wrote: > On Sun, Nov 16, 2003 at 12:18:38PM -0100, Tiago Cogumbreiro wrote: > > > 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 > > The reason I asked this was because sometimes you may want two > versions > of java-gnome installed, in a similar way to how you may want gtk1.2 > and > gtk2.2 installed. Some applications will want the 1.2 lib, others the > 2.2 lib. Is there any way that the java application itself can > specify > which one to use? Would it be sufficient to just have the correct jar > in > the classpath? Eclipse SWT allows coexistence of more than one version in the same system, and the way they handle it is including the version number in the name of the library. For example, for the version 2.1.1 of eclipse they used the build number 2135, and the native libraries are: for linux/x86 they have: libswt-gtk-2135.so libswt-pi-gtk-2135.so libswt-gnome-gtk-2135.so for win32/x86 they have: swt-win32-2135.dll They have diferent implementations of swt for diferent platforms, that's why they have also diferent names for native libraries, but using this approach, the v0.8.1 of gnome-java could load libgnome-java-0.8.1.so instead of libgnome-java.so. If a user updates gnome-java, the jar and the native libs both are updated, then the new jar v1.0 could load the new installed libgnome-java-1.0.so and the user can have both versions of gnome-java. The version used will depend on what jar the user references. If the app references gnome-0.8.1.jar, it whill use v0.8.1, if the application references gnome-1.0.jar, it will use v1.0, and if the application references gnome.jar, the version depends on the soft link. rivas. __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree |