java+Linux
Alaios
alaios at yahoo.com
Sun Apr 18 09:32:33 EEST 2004
Xairete to problima mou mporei na fainetai Java alla
einai Linux.
Prospatho na kano compile ena grafiko programma pou
mou exoun dosei meso ton entolon
1 # Compile the java installation program
2 javac -classpath java java/Install/Install.java
3 # Execute the compiled java program
4 java -classpath java Install.Install -compile
alla otan tis ektelo pairno to parakato minima lathous
.....
akroneiro:/usr/local/JabberwockyBinary # ./install
Xlib: connection to ":0.0" refused by server
Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key
comparison)
Exception in thread "main" java.lang.InternalError:
Can't connect to X11 window server using ':0.0' as th
e value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native
Method)
at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Font.initializeFont(Font.java:308)
at java.awt.Font.<init>(Font.java:344)
at
javax.swing.plaf.metal.DefaultMetalTheme$FontDelegate.getFont(DefaultMetalTheme.java:195)
at
javax.swing.plaf.metal.DefaultMetalTheme.getFont(DefaultMetalTheme.java:153)
at
javax.swing.plaf.metal.DefaultMetalTheme.getControlTextFont(DefaultMetalTheme.java:129)
at
javax.swing.plaf.metal.MetalLookAndFeel$FontActiveValue.createValue(MetalLookAndFeel.java:1399
)
at
javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:196)
at javax.swing.UIDefaults.get(UIDefaults.java:126)
at
javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
at
javax.swing.UIDefaults.getFont(UIDefaults.java:346)
at javax.swing.UIManager.getFont(UIManager.java:491)
at
javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:89)
at
javax.swing.plaf.basic.BasicLabelUI.installDefaults(BasicLabelUI.java:302)
at
javax.swing.plaf.basic.BasicLabelUI.installUI(BasicLabelUI.java:254)
at javax.swing.JComponent.setUI(JComponent.java:449)
at javax.swing.JLabel.setUI(JLabel.java:238)
at javax.swing.JLabel.updateUI(JLabel.java:248)
at javax.swing.JLabel.<init>(JLabel.java:141)
at javax.swing.JLabel.<init>(JLabel.java:171)
at Install.Install.main(Install.java:71)
opos mporeite na deite to problima einai sto Display.
Stin arxi pistepsa oti to sygkekrimeno lathos logika
mou to bgazei etsi afou imouna se konsola....gia ayto
bgika se xterm...alla kai pali tipota....
Meta dokimasa sa root alla panta to idio lathos,,,,
Meta dokimasa tin entolo xhost prosthetontas ta
panta... alla oute kai ayto epiase........
Basika den mporo na katalabo pou akribos einai to
problima ...... afouto sygkekrimeno X Server to
xrisimopoio kai gia remote logins...
I metabliti DISPLAY exei timi
echo $DISPLAY
:0.0
Sas parakalo peste oti nomizete
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash
More information about the Migrate2linux
mailing list