Je suis perl, guy python et nouveau à java et groovy. Je reçois cette erreur lors de l'exécution de groovyConsoleerreur groovyConsole X11 lors du démarrage
groovy fonctionne très bien.
myhome:~/gscripts # groovyConsole
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:108)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
J'ai ajouté ce
DISPLAY=:0.0
export DISPLAY
Pour /home/me/.bask_profile et /home/me/.bashrc aussi Mais en vain. Aidez-moi, laissez-moi savoir pourquoi cette erreur se produit.