Can you run it at the linux machine if there is no Window manager running? As in runlevel 3? Adam ----- Original Message ----- From: "Eric Carbone" <ERIC@morprinting.com> To: <suse-linux-e@suse.com>; <linux@flux.org> Sent: Monday, March 04, 2002 3:18 PM Subject: [SLE] remote starting a java app through SSH
On my Linux server I am running Java version 1.3.1_02
From a PC on the network, I log into this Linux machine using SSH.
I try launching a java app named CrushFTP by logging in as root and typing the following:
# java -jar CrushFTP.jar
When I type this line and hit Enter, I get the following:
Problem with constructor javax.swing.plaf.FontUIResource and args {Dialog,0,12} : and types {class java.lang.String,int,int} : java.lang.reflect.InvocationTargetException
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:997) at
javax.swing.UIDefaults$ProxyLazyValue.createValue(UIDefaults.java:663)
at javax.swing.UIDefaults.get(UIDefaults.java:145) at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:46) at javax.swing.UIDefaults.getFont(UIDefaults.java:223) at javax.swing.UIManager.getFont(UIManager.java:456) at
javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:90)
at
javax.swing.plaf.basic.BasicPanelUI.installDefaults(BasicPanelUI.java:51)
at
javax.swing.plaf.basic.BasicPanelUI.installUI(BasicPanelUI.java:42)
at javax.swing.JComponent.setUI(JComponent.java:322) at javax.swing.JPanel.updateUI(JPanel.java:107) at javax.swing.JPanel.<init>(JPanel.java:67) at javax.swing.JPanel.<init>(JPanel.java:97) at javax.swing.JRootPane.createGlassPane(JRootPane.java:291) at javax.swing.JRootPane.<init>(JRootPane.java:198) at javax.swing.JApplet.createRootPane(JApplet.java:117) at javax.swing.JApplet.<init>(JApplet.java:110) at CrushFTP.<init>(CrushFTP.java:13) at CrushFTP.main(CrushFTP.java:30)
Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at
.java:58)
at java.awt.Window.<init>(Window.java:188) at java.awt.Frame.<init>(Frame.java:315) at java.awt.Frame.<init>(Frame.java:262) at javax.swing.JFrame.<init>(JFrame.java:141) at crush_ftp.ServerStatus.<init>(ServerStatus.java:409) at CrushFTP.<init>(CrushFTP.java:17) at CrushFTP.main(CrushFTP.java:30)
maftp:/home/maftp/crushftp #
Any idea what causes the error and how to fix it?
I take a look over at my Linux machine and CrushFTP does NOT start up.
BY THE WAY ...
If I type java -jar CrushFTP.jar from a shell while sitting in front of
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment the
Linux machine (versus entering this command through SSH), then CrushFTP starts up fine.
Thanks doctors!
Eric Carbone