Chau,
It seems that you are picking up the default java installation (GNU java
under /usr/bin/java) in this case. The AWT error indicates that you are
loading GNU AWT toolkit (libgcj.so is a GNU java library which comes
installed by default. I believe that since you are installing JDK
yourself, your LD_LIBRARY_PATH picks up the gnu libraries.
Do you see this issue if you do a sudo apt-get install sun-java5-jdk and
install JDK5 and use it.
Thanks
Harpreet
>
>
> ------------------------------------------------------------------------
>
> Subject:
> Urgent: Cannot install GlassFish v2 b33 on Ubuntu
> From:
> Chau Nguyen <Ch.Nguyen_at_sun.com>
> Date:
> Fri, 20 Apr 2007 09:28:49 -0700
> To:
> users_at_glassfish.dev.java.net
>
> To:
> users_at_glassfish.dev.java.net
>
>
> Hi,
>
> I tried to install this GF version on my ubuntu system but not able
> to. Here are the steps I did:
> . Installed the self extracting JDK 1.5.0_11 (this is the latest out
> there on java.sun.com)
> . downloaded GF v2 b33 jar file & size = 60206662B
> . $JDK1.5.0_11HOME/bin/java -Xmx256m -jar glassfish-installer-v2-b33.jar
> Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
> gnu.java.awt.peer.gtk.GtkToolkit
> at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
> at java.awt.Font.tk(libgcj.so.70)
> at java.awt.Font.getPeerFromToolkit(libgcj.so.70)
> at java.awt.Font.<init>(libgcj.so.70)
> at javax.swing.plaf.FontUIResource.<init>(libgcj.so.70)
> at javax.swing.plaf.metal.DefaultMetalTheme.<clinit>(libgcj.so.70)
> at java.lang.Class.initializeClass(libgcj.so.70)
> at java.lang.Class.initializeClass(libgcj.so.70)
> at
> javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(libgcj.so.70)
> at javax.swing.plaf.metal.MetalLookAndFeel.<init>(libgcj.so.70)
> at javax.swing.UIManager.<clinit>(libgcj.so.70)
> at java.lang.Class.initializeClass(libgcj.so.70)
> at com.sun.tools.xjc.installer.Main.setUILookAndFeel(Main.java:83)
> at com.sun.tools.xjc.installer.Main.main(Main.java:50)
> Caused by: java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so:
> cannot open shared object file: No such file or directory
> at java.lang.Runtime._load(libgcj.so.70)
> at java.lang.Runtime.loadLibrary(libgcj.so.70)
> at java.lang.System.loadLibrary(libgcj.so.70)
> at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(libgcj.so.70)
> at java.lang.Class.initializeClass(libgcj.so.70)
> at java.lang.Class.forName(libgcj.so.70)
> at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
> ...13 more
>
> Did I miss anything?
>
> Chau
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>