Java GUI Problem

Java GUI Problem

od  kevinmanuel  -  20. březen 2018 07:09

HI,

I have a Java application without any GUI on NetBeans(on my windows 7 computer) and I can run and debug it on Raspberry Pi 2 using remote java run time property.
However, when I try to run and debug another Java application with Swing GUI on Raspberry Pi 2 using the same remote java run time approach, I get the exception: "No X11 DISPLAY variable was set, but this program performed an operation which requires it." My Raspberry Pi 2 has a monitor connected via HDMI.I do not want and need to see the application's GUI on my windows 7 computer but I must see and interact the GUI on Raspberry Pi 2's monitor. How can I do that?

please help

I did not find the right solution from the internet.

References:
https://www.raspberrypi.org/forums/viewtopic.php?t=137474
Motion graphics video animation company


Thanks