openjdk missing motif 2.1 library

Bug #230062 reported by J. Kary
2
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: openjdk-6-jre

The following program will not run with the default install of OpenJDK. (This is similar to issue #211105) I believe there is a dependency missing from the openJDK installer.

import java.awt.Container;

import javax.swing.JFrame;
import javax.swing.JTextArea;

public class Test {
  public static void main(String args[]) {
    JFrame frame = new JFrame("Test");
    Container content = frame.getContentPane();

    JTextArea leftTextArea = new JTextArea();
    content.add(leftTextArea);

    frame.setSize(150, 150);
    frame.setVisible(true);
  }
}

Here are the details of my install:

lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04
===

apt-cache policy openjdk-6-jre
openjdk-6-jre:
  Installed: 6b09-0ubuntu2
  Candidate: 6b09-0ubuntu2
  Version table:
 *** 6b09-0ubuntu2 0
        500 http://ubuntu.media.mit.edu hardy/universe Packages
        100 /var/lib/dpkg/status
===
 java Test
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/motif21/libmawt.so
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1666)
 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:1767)
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684)
 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:1610)
 at java.awt.Toolkit.<clinit>(Toolkit.java:1632)
 at java.awt.Component.<clinit>(Component.java:568)
 at Test.main(Test.java:8)
===

uname
Linux jkary-desktop 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008 x86_64 GNU/Linux

Revision history for this message
Matthias Klose (doko) wrote :

we can't build using openmotif, because this is in the multiverse section of the archive.

Changed in openjdk-6:
status: New → Won't Fix
Revision history for this message
Flamma (flamma) wrote :

And isn't it possible to provide a replacement that make applications not to crash? I can't even execute Netbeans!

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Is this problem specific to amd64? I can compile and run the program just fine on my machine with openjdk-6-jre version 6b11-2ubuntu2 (from hardy-updates).

Or is the case of compiling program with Sun JDK and trying to run with OpenJDK JRE? I should note that even that works fine on my machine.

Revision history for this message
Flamma (flamma) wrote :

No. It's a problem of version 6b12-0ubuntu6, from Intrepid. It happens at least in x86.Hardy worked ok.

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.