Java AWT does not work on feisty out of the box
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcj-4.1 (Ubuntu) |
Incomplete
|
Undecided
|
Tom Mortimer-Jones |
Bug Description
Binary package hint: gij-4.1
I am trying to run 2 java programs off of sourceforge (pcgen and jreepad). Both fail with errors related to AWT.
Installing libgcj7-awt solves the problem, but AWT is very common so perhaps the package should be installed by default.
$ java -jar Jreepad-1.5.1.jar
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.
at java.awt.
at jreepad.
at java.lang.
Caused by: java.lang.
at java.lang.
at java.lang.
at java.lang.
at gnu.java.
at java.lang.
at java.lang.
at java.awt.
...2 more
$ bash -x pcgen.sh
++ dirname pcgen.sh
+ cd .
+ pcgendir=
+ '[' '!' -d /home/amp/.pcgen ']'
+ '[' x = x ']'
+ case "$WINDOWMANAGER" in
+ BROWSER=netscape
+ javaargs='-Xms128m -Xmx256m'
+ pcgenargs=
+ whosearg=java
+ '[' x '!=' x ']'
+ exec java -DBROWSER=netscape -Xms128m -Xmx256m -jar ./pcgen.jar
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.
at java.awt.
at pcgen.util.
at java.lang.
at pcgen.core.
at pcgen.core.
Caused by: java.lang.
at java.lang.
at java.lang.
at java.awt.
...4 more
PS: The programs fail to run even with the AWT package installed. Both with Null pointer deref exceptions.
Thanks for the bug report.
If you download software from other sources (such as SourceForge) then you will need to locate the dependencies in order to run them. I am glad that you managed to locate the correct library in order to run these applications. The packages installed by default by Ubuntu are deliberately kept to a minimum so that the distribution can fit on a single CD. It would not be possible to install all of the libraries to run even the most popular software without becoming far to big to fit on a CD.
If you are still having trouble with these applications and you believe that it is a problem with an Ubuntu library please post some more information. If you think that the problem is with the application then the developers of these applications will be able to help you.