Use user's JVM on Linux without depending on RPATH

Bug #1178039 reported by Chris Hillery
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Confirmed
Medium
Juan Zacarias

Bug Description

In Zorba 2.8, the util-jvm module specifically depended on OpenJDK 6.

In Zorba 2.9, we have improved this by (we believe) allowing the user to have other JVMs installed. However, in order to achieve this, we set the RPATH of libutil-jvm.so to point to a number of common locations for libjvm.so.

This is not the "Right Approach", but it is not clear what actually is. On Ubuntu there does not seem to be an /etc/alternatives entry for libjvm.so so we can't link against that. RPATH, however, is evidently strongly deprecated (Debian and Fedora packaging guidelines disallow it, from what I have read), so we really should come up with something else for Zorba 3.0.

Possibly we could use dlopen() at runtime to find libjvm.so, based on the location of the java executable (which can be traced via symlinks from the PATH)?

Chris Hillery (ceejatec)
Changed in zorba:
milestone: none → 3.0
assignee: nobody → Juan Zacarias (juan457)
importance: Undecided → Medium
Chris Hillery (ceejatec)
Changed in zorba:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.