Bonjour,
j'ai un programme java que je l'execute via exec en php, et ce programme a des options graphiques, d'ou quand je desactive ces options le script tourne bien et le programme s'execute via le web mais quand j'active ces options et à l'execution j'obtiens les resultats suivant:
et quand j'execute ce programme en konsole il affiche des petits fenetres sous formes graphiques.Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.(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.Window.init(Window.java:231) at java.awt.Window.(Window.java:275) at java.awt.Frame.(Frame.java:401) at javax.swing.JFrame.(JFrame.java:198) at antlr.debug.misc.ASTFrame.(ASTFrame.java:39) at EVHDL.parseFile(EVHDL.java:175) at EVHDL.parseThisFile(EVHDL.java:135) at EVHDL.main(EVHDL.java:106)
à l'execution en konsole les graphiques sont affichés dans des petits fenetres et ses graphiques sont sous formes des arbres.Java EVDL -option nonfichier;
puis je en en script PHP réaliser ça. j'attends vos commentaires et vos conseils.
Merci
Partager