I am trying to install netbeans from the command line using mobaxterm on suse enterprise. I have set X11 Forwarding when creating the session. However, I still get the following error when I try to run the downloaded netbeans script:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
Exception: java.awt.HeadlessException thrown from the UncaughtExceptionHandler in thread "main"
I tried this solution, but it didn't cut it.
UPDATE
I was able to resolve this by manually changing sshd_config:
Under
/etc/ssh/sshd_config
Make sure you have the following set:
X11Forwarding yes
X11UseLocalhost no
PermitRootLogin yes