Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JDK 1.4.1 on Debian

0 views
Skip to first unread message

Shayne Flint

unread,
Mar 25, 2003, 8:31:06 AM3/25/03
to
I have installed Sun JDK 1.4.1_02-b06 on Debian GNU/Linux (Sid)

I can compile and run text based apps (eg. hello world)

When I run a GUI app (any GUI app) I get the following messages.

Does anyone have any clues as to what is wrong. My guess is that I am
missing a library of some kind.

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:72)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at java.awt.Toolkit$2.run(Toolkit.java:712)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
at javax.swing.ImageIcon.<init>(ImageIcon.java:205)
at javax.swing.LookAndFeel$1.createValue(LookAndFeel.java:274)
at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:181)
at javax.swing.UIDefaults.get(UIDefaults.java:126)
at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
at javax.swing.UIDefaults.getIcon(UIDefaults.java:407)
at javax.swing.UIManager.getIcon(UIManager.java:537)
at
javax.swing.plaf.basic.BasicOptionPaneUI.getIconForType(BasicOptionPaneUI.java:555)
at
javax.swing.plaf.basic.BasicOptionPaneUI.getIcon(BasicOptionPaneUI.java:543)
at
javax.swing.plaf.basic.BasicOptionPaneUI.createMessageArea(BasicOptionPaneUI.java:313)
at
javax.swing.plaf.basic.BasicOptionPaneUI.installComponents(BasicOptionPaneUI.java:154)
at
javax.swing.plaf.basic.BasicOptionPaneUI.installUI(BasicOptionPaneUI.java:122)
at javax.swing.JComponent.setUI(JComponent.java:449)
at javax.swing.JOptionPane.setUI(JOptionPane.java:1675)
at javax.swing.JOptionPane.updateUI(JOptionPane.java:1697)
at javax.swing.JOptionPane.<init>(JOptionPane.java:1660)
at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:810)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:624)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:595)
at armidale.api.io.FrameTextOutput.showError(Unknown Source)
at armidale.api.io.AbstractTextOutput.showError(Unknown Source)
at armidale.api.io.AbstractTextOutput.showErrorStackTrace(Unknown
Source)
at armidale.api.Application.run(Unknown Source)

Jon Skeet

unread,
Mar 26, 2003, 8:46:26 AM3/26/03
to
Shayne Flint <sha...@flint-family.net> wrote:
> I have installed Sun JDK 1.4.1_02-b06 on Debian GNU/Linux (Sid)
>
> I can compile and run text based apps (eg. hello world)
>
> When I run a GUI app (any GUI app) I get the following messages.
>
> Does anyone have any clues as to what is wrong. My guess is that I am
> missing a library of some kind.

<snip>

My guess is that you're not using the version of Java you think you
are. What happens if you run

java -version

?

Also, does it not say *which* class it can't find?

--
Jon Skeet - <sk...@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too

Shayne Flint

unread,
Mar 26, 2003, 5:21:35 PM3/26/03
to
Jon Skeet <sk...@pobox.com> wrote in message news:<MPG.18ebbf8a5...@dnews.peramon.com>...

> Shayne Flint <sha...@flint-family.net> wrote:
> > I have installed Sun JDK 1.4.1_02-b06 on Debian GNU/Linux (Sid)
> >
> > I can compile and run text based apps (eg. hello world)
> >
> > When I run a GUI app (any GUI app) I get the following messages.
> >
> > Does anyone have any clues as to what is wrong. My guess is that I am
> > missing a library of some kind.
>
> <snip>
>
> My guess is that you're not using the version of Java you think you
> are. What happens if you run
>
> java -version
>

I am running JDK 1.4.1, as indicated by using 'java -version'

java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)


> ?
>
> Also, does it not say *which* class it can't find?

Where I installed it

/opt/j2sdk1.4.1_02/bin/java

This release of Java worked fine on a previous install of Debian Sid.
I am now on a new computer, with a new install of Debian Sid.
Everything else seems to work OK, but not Java GUI applications!!

Shayne Flint

unread,
Mar 26, 2003, 5:24:43 PM3/26/03
to
Jon Skeet <sk...@pobox.com> wrote in message news:<MPG.18ebbf8a5...@dnews.peramon.com>...
> Shayne Flint <sha...@flint-family.net> wrote:
> > I have installed Sun JDK 1.4.1_02-b06 on Debian GNU/Linux (Sid)
> >
> > I can compile and run text based apps (eg. hello world)
> >
> > When I run a GUI app (any GUI app) I get the following messages.
> >
> > Does anyone have any clues as to what is wrong. My guess is that I am
> > missing a library of some kind.
>
> <snip>
>
> My guess is that you're not using the version of Java you think you
> are. What happens if you run
>
> java -version
>
> ?
>
> Also, does it not say *which* class it can't find?

Sorry - I misread this question. No it didn't tell me which class
could not be found. The error messages I posted yesterday are all that
were displayed.

Shayne Flint

unread,
Mar 26, 2003, 10:02:47 PM3/26/03
to
For those having the same problem:

The JDK library libfontmanager.so depends on libstdc++-lib6.1-1.so.2

# ldd libfontmanager.so
libawt.so => not found
libjava.so => not found
libjvm.so => not found
libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 (0x400ed000)
libm.so.6 => /lib/libm.so.6 (0x40136000)
libc.so.6 => /lib/libc.so.6 (0x40157000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

The version installed on my computer is libstdc++-libc6.2-2.so.3

So I symlinked /usr/lib/libstdc++-libc6.1-1.so.2 -> libstdc++-libc6.2-2.so.3

Everything works OK now.

--Shayne

0 new messages