Reputation: 9
I'm trying to remote into my raspberry with netbeans in Windows 10, but there is a report like this picture. I have received the following error, and I do not understand it. I see that some X11 DISPLAY variable needs to be set, but what value should I give it and how? I ever to trying with XMING but still same.
How can I fix this?
Connecting to 192.168.137.75:22 cmd : cd '/home/pi/NetBeansProjects//Gcrypt'; '/usr/bin/java' -Dfile.encoding=UTF-8 -jar /home/pi/NetBeansProjects//Gcrypt/dist/Gcrypt.jar Exception in thread "AWT-EventQueue-0" 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:204) atjava.awt.Window.<init>
(Window.java:536) atjava.awt.Frame.<init>
(Frame.java:420) atjava.awt.Frame.<init>
(Frame.java:385) atjavax.swing.JFrame.<init>
(JFrame.java:189) atgui.Main.<init>
(Main.java:21) atgui.Main$4.run
(Main.java:162) atjava.awt.event.InvocationEvent.dispatch
(InvocationEvent.java:311) atjava.awt.EventQueue.dispatchEventImpl
(EventQueue.java:756) atjava.awt.EventQueue.access$500
(EventQueue.java:97) atjava.awt.EventQueue$3.run
(EventQueue.java:709) atjava.awt.EventQueue$3.run
(EventQueue.java:703) atjava.security.AccessController.doPrivileged
(Native Method) atjava.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege
(ProtectionDomain.java:76) atjava.awt.EventQueue.dispatchEvent
(EventQueue.java:726) atjava.awt.EventDispatchThread.pumpOneEventForFilters
(EventDispatchThread.java:201) atjava.awt.EventDispatchThread.pumpEventsForFilter
(EventDispatchThread.java:116) atjava.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:105) atjava.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:101) atjava.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:93) atjava.awt.EventDispatchThread.run
(EventDispatchThread.java:82)
Upvotes: 0
Views: 18246
Reputation: 21
The solution is in the error message: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
first set the DISPLAY variable with this command, than run your program
export DISPLAY=yourRemoteHostHere:0.0
Upvotes: 1