← Back to team overview

openjdk team mailing list archive

[Bug 942306] Re: Wrong extension path compiled into libjvm.so

 

** Description changed:

  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?
  
- Distribution: Ubuntu 11.10
- Package: openjdk-6-jre-headless-6b23~pre11-0ubuntu1.11.10.2
- Architecture: amd64
- 
  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
+  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)

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in Ubuntu.
https://bugs.launchpad.net/bugs/942306

Title:
  Wrong extension path compiled into libjvm.so

Status in “openjdk-6” package in Ubuntu:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/942306/+subscriptions



References