Originally Posted by
LordHunter317
No, they're not. They ought to be persisted into the X environment, at least they are for KDM. If GDM got broken again...
If that script is exactly as written, what does ~/.xsession-errors say when you try to run it? What does this application do?
Ok, this is what i have on my ~/.xsession-errors when i tried to run my simple test program "Hello World" inside the JOptionPane.showMessageDialog(). I have highlighted the part where i think errors that generated by java.
/
Code:
etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/bin/X11/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l ":0" "ariel"
/etc/gdm/Xsession: Beginning session setup...
_IceTransTransNoListen: unable to find transport: tcp
_IceTransmkdir: ERROR: euid != 0,directory /dev/X will not be created.
_IceTransmkdir: ERROR: Cannot create /dev/X
_IceTransPTSOpenServer: mkdir(/dev/X) failed, errno = 13
_IceTransOpen: transport open failed for pts/MyUbuntu:
_IceTransMakeAllCOTSServerListeners: failed to open listener for pts
_IceTransISCOpenServer: Protocol is not supported by a ISC connection
_IceTransOpen: transport open failed for isc/MyUbuntu:
_IceTransMakeAllCOTSServerListeners: failed to open listener for isc
_IceTransSCOOpenServer: Protocol is not supported by a SCO connection
_IceTransOpen: transport open failed for sco/MyUbuntu:
_IceTransMakeAllCOTSServerListeners: failed to open listener for sco
SESSION_MANAGER=unix/MyUbuntu:/tmp/.ICE-unix/8714
** (gnome-session:8714): WARNING **: Host name lookup failure on localhost.
Gnome-Message: gnome_execute_async_with_env_fds: returning -1
Gnome-Message: gnome_execute_async_with_env_fds: returning -1
manager.c/562: setting[0]: bool: autobrowse = 1
manager.c/562: setting[1]: bool: autoburn = 1
manager.c/557: setting[2]: string: autoburn_audio_cd_command = serpentine
manager.c/557: setting[3]: string: autoburn_photo_cd_command = nautilus --no-desktop burn:
manager.c/557: setting[4]: string: autoburn_data_cd_command = nautilus --no-desktop burn:
manager.c/562: setting[5]: bool: autoipod = 0
manager.c/557: setting[6]: string: autoipod_command =
manager.c/562: setting[7]: bool: automount_drives = 1
manager.c/562: setting[8]: bool: automount_media = 1
manager.c/562: setting[9]: bool: autophoto = 1
manager.c/557: setting[10]: string: autophoto_command = gnome-volume-manager-gthumb %h
manager.c/562: setting[11]: bool: autoplay_cda = 1
manager.c/557: setting[12]: string: autoplay_cda_command = sound-juicer -d %d
manager.c/562: setting[13]: bool: autoplay_dvd = 1
manager.c/557: setting[14]: string: autoplay_dvd_command = totem %d
manager.c/562: setting[15]: bool: autoplay_vcd = 1
manager.c/557: setting[16]: string: autoplay_vcd_command = totem %d
manager.c/562: setting[17]: bool: autoprinter = 0
manager.c/557: setting[18]: string: autoprinter_command = gnome-cups-add hal://%h
manager.c/562: setting[19]: bool: autorun = 0
manager.c/557: setting[20]: string: autorun_path = .autorun:autorun:autorun.sh
manager.c/557: setting[21]: string: eject_command = /usr/bin/eject
manager.c/2082: mount_all: mounting /dev/hdd
manager.c/1258: mounting /org/freedesktop/Hal/devices/volume_label_...
manager.c/696: executing command: /usr/bin/pmount-hal /org/freedesktop/Hal/devices/volume_label_
Warning: device /dev/hdd is already handled by /etc/fstab, supplied label is ignored
mount: block device /dev/hdd is write-protected, mounting read-only
manager.c/1878: Mounted: /org/freedesktop/Hal/devices/volume_label_
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.6.0.0)
at java.awt.Font.tk() (/usr/lib/libgcj.so.6.0.0)
at java.awt.Font.getPeerFromToolkit(java.lang.String, java.util.Map) (/usr/lib/libgcj.so.6.0.0)
at java.awt.Font.Font(java.lang.String, int, int) (/usr/lib/libgcj.so.6.0.0)
at javax.swing.plaf.FontUIResource.FontUIResource(java.lang.String, int, int) (/usr/lib/libgcj.so.6.0.0)
at javax.swing.plaf.metal.DefaultMetalTheme.<clinit>() (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
at javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme() (/usr/lib/libgcj.so.6.0.0)
at javax.swing.plaf.metal.MetalLookAndFeel.MetalLookAndFeel() (/usr/lib/libgcj.so.6.0.0)
at javax.swing.UIManager.<clinit>() (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
at javax.swing.UIManager.getUI(javax.swing.JComponent) (/usr/lib/libgcj.so.6.0.0)
at javax.swing.JOptionPane.updateUI() (/usr/lib/libgcj.so.6.0.0)
at javax.swing.JOptionPane.JOptionPane(java.lang.Object, int, int, javax.swing.Icon, java.lang.Object[], java.lang.Object) (/usr/lib/libgcj.so.6.0.0)
at javax.swing.JOptionPane.JOptionPane(java.lang.Object, int) (/usr/lib/libgcj.so.6.0.0)
at javax.swing.JOptionPane.showMessageDialog(java.awt.Component, java.lang.Object) (/usr/lib/libgcj.so.6.0.0)
at Hello2.main(java.lang.String[]) (Unknown Source)
at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/ariel/Hello2.jar,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.6.0.0)
...18 more
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
** (gnome-cups-icon:8831): WARNING **: IPP request failed with status 1030
Do you think there is something missing with the installation of my java?
This is how i setup java on my system (this might help):
* I downloaded the jdk1.5.0_06 from the Sun's website.
* Created directory for my java called /java on /usr and
that's where i installed it.
* Then i added export PATH=/usr/java/jdk1.5.0_06/bin/:$PATH to my ~/.bashrc to set its classpath.
Cheers mate...
Bookmarks