Wrong extension path compiled into libjvm.so

Bug #942306 reported by Gregor Riepl
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In an attempt to make Eclipse load the library RXTXcomm.jar from the Ubuntu package librxtx-java, I discovered that /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server/libjvm.so (part of openJDK 6) only includes the hardcoded extension path /usr/java/packages/lib/ext. Yet, Java packages are installed into /usr/share/java, so they are subsequently not found by Eclipse.

Running Eclipse with a custom classpath is not straightforward, so I decided to create the aforementioned directory and symlink the .jar into it. This works but is not very user friendly.

As I see it, the path compiled into libjvm.so is wrong. It should point to the Debian/Ubuntu specific extension location instead. Is there a reason why java.ext.dirs must be /usr/lib/jvm/java-6-openjdk/jre/lib/ext:/usr/java/packages/lib/ext instead of /usr/lib/jvm/java-6-openjdk/jre/lib/ext:/usr/share/java?

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: openjdk-6-jre-headless 6b23~pre11-0ubuntu1.11.10.2
ProcVersionSignature: Ubuntu 3.0.0-16.28-generic 3.0.17
Uname: Linux 3.0.0-16-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Mon Feb 27 23:47:47 2012
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANGUAGE=en_GB:en_US:en
 PATH=(custom, no user)
 LANG=en_GB.utf8
 SHELL=/bin/bash
SourcePackage: openjdk-6
UpgradeStatus: Upgraded to oneiric on 2011-10-16 (134 days ago)

Revision history for this message
Gregor Riepl (onitake) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openjdk-6 (Ubuntu):
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.