Missing dependency java-6-openjdk

Bug #611987 reported by mantaraya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jabref (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: jabref

I have the sun-java-jdk installed, but jabref doesn't start:

$ jabref

ERROR while starting or running JabRef:

java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1649)
 at java.lang.Runtime.load0(Runtime.java:787)
 at java.lang.System.load(System.java:1022)
 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1667)
 at java.lang.Runtime.loadLibrary0(Runtime.java:840)
 at java.lang.System.loadLibrary(System.java:1047)
 at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
 at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.awt.Toolkit.loadLibraries(Toolkit.java:1614)
 at java.awt.Toolkit.<clinit>(Toolkit.java:1636)
 at java.awt.Dimension.<clinit>(Dimension.java:87)
 at net.sf.jabref.GUIGlobals.<clinit>(Unknown Source)
 at net.sf.jabref.JabRefPreferences.<init>(Unknown Source)
 at net.sf.jabref.JabRefPreferences.getInstance(Unknown Source)
 at net.sf.jabref.JabRef.<init>(Unknown Source)
 at net.sf.jabref.JabRef.main(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:616)
 at net.sf.jabref.JabRefMain.main(Unknown Source)

Please first check if this problem and a solution is already known. Find our...
  * ...FAQ at http://jabref.sf.net/faq.php and our...
  * ...user mailing-list at http://sf.net/mailarchive/forum.php?forum_name=jabref-users

If you do not find a solution there, please let us know about the problem by writing a bug report.
You can find our bug tracker at http://sourceforge.net/tracker/?atid=600306&group_id=92314

  * If the bug has already been reported there, please add your comments to the existing bug.
  * If the bug has not been reported yet, then we need the complete error message given above
    and a description of what you did before the error occured.

We also need the following information (you can copy and paste all this):
  * Java Version: 1.6.0_18
  * Java Vendor: Sun Microsystems Inc.
  * Operating System: Linux (2.6.32-24-generic)
  * Hardware Architecture: i386

We are sorry for the trouble and thanks for reporting problems with JabRef!

Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
 at java.awt.Component.<clinit>(Component.java:568)
 at net.sf.jabref.JabRefMain.main(Unknown Source)

----------------
If I install openjdk-jre (i had openjdk-jre-headless installed), jabref runs fine. Maybe this is an issue arising from my upgrade from 9.10?

Other info:
$ lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04

$ apt-cache policy jabref
jabref:
  Installed: 2.5-1ubuntu1
  Candidate: 2.5-1ubuntu1
  Version table:
 *** 2.5-1ubuntu1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ lucid/multiverse Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: jabref 2.5-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-24.38-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic i686
NonfreeKernelModules: wl
Architecture: i386
Date: Sat Jul 31 10:02:15 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
PackageArchitecture: all
ProcEnviron:
 LANG=en_GB.utf8
 SHELL=/bin/bash
SourcePackage: jabref

Revision history for this message
mantaraya (mantaraya36) wrote :
Revision history for this message
Hartmut Benz (hartmut-benz) wrote :

mantaraya,
Java programs that create a GUI on the screen will not run with openjdk-6-jre-headless, because this package is intended for servers without a screen. Thus, jabref requires openjdk-6-jre to run.
When starting a Java application that should run headless, I think you are required to pass it the parameter -Djava.awt.headless=true and then it will not try to load/bind libmawt.so

Revision history for this message
Max Gaukler (mgmax) wrote :

Sun Java no longer exists. Please open a new issue if it is still a problem on an up-to-date installation.

Changed in jabref (Ubuntu):
status: New → Invalid
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.