|
|
|
|
Please help:
j'ai une application java(avec interface graphique) qui tourne normalement sur windows
mais pour des raisons de test: je dois la faire tourner sur une
machine DISTANTE sous linux
la compilation est correcte mais pour l'execution une erreur se produit:
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
j'ai trouve quelque part sur un forum qu'il faut modifier
un fichier .bash_profile pour ajouter
DISPLAY=:0.0
export DISPLAY
j'ai essaye mais une autre erreur survient:
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using :0.0 as the value of the DISPLAY variable.
Toute personne ayant une idee sur le probleme est priee de me repondre
et Merci d'avance.
Configuration: Windows XP Internet Explorer 6.0
Re-bonjour
ATTENTION:
No X11 DISPLAY variable was set, but this program performed an operation which r equires it.
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which r equires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:1 59)
at java.awt.Window.<init>(Window.java:317)
at java.awt.Frame.<init>(Frame.java:419)
at javax.swing.JFrame.<init>(JFrame.java:194)
at net.sourceforge.ganttproject.GanttSplash.<init>(Unknown Source)
at net.sourceforge.ganttproject.GanttProject.main(Unknown Source)
at net.sourceforge.ganttproject.application.MainApplication.run(Unknown Source)
at org.bardsoftware.impl.eclipsito.ApplicationLauncher.launchApplication (ApplicationLauncher.java:29)
at org.bardsoftware.impl.eclipsito.BootImpl$2.run(BootImpl.java:45)Configuration: Linux Debian Mozilla 1.8.1.6 |
Bonjour,
X11Forwarding yes X11DisplayOffset 10 PrintMotd no PrintLastLog yes TCPKeepAlive yes cela m'avance personnellement pas à grand chose, si ce n'est que je vois que le forwarding est bien à yes. tout cela est-il parlant pour l'un d'entre vous? rappel du message d'erreur: nsxxxx:# ./ganttproject.sh
4 sept. 2007 15:56:24 org.bardsoftware.impl.eclipsito.BootImpl run
INFO: Eclipsito platform is running.
4 sept. 2007 15:56:24 org.bardsoftware.impl.eclipsito.ApplicationLauncher launchApplication
ATTENTION:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:317)
at java.awt.Frame.<init>(Frame.java:419)
at javax.swing.JFrame.<init>(JFrame.java:194)
at net.sourceforge.ganttproject.GanttSplash.<init>(Unknown Source)
at net.sourceforge.ganttproject.GanttProject.main(Unknown Source)
at net.sourceforge.ganttproject.application.MainApplication.run(Unknown Source)
at org.bardsoftware.impl.eclipsito.ApplicationLauncher.launchApplication(ApplicationLauncher.java:29)
at org.bardsoftware.impl.eclipsito.BootImpl$2.run(BootImpl.java:45) |