Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Java program does not work through a ssh connection

I'm trying to run a java program through an ssh connection, but I receives an error concerning the X11 Display.

Here all the steps & errors:


- My local

> ssh user@ip_mac

Connection succeed


- Then in my MAC OS (Maverick)

> java -jar zzzzz.jar

"No X11 DISPLAY variable was set, but this program performed an operation which requires it"


So, I check it and the variable DISPLAY seems to be set:


> echo $DISPLAY

/tmp/launch-BVoaQK/org.macosforge.xquartz:0


If I open a terminal locally and do the same procedure, the java program runs well.

Any clue?


I tried also to run other applications (like Safari, Calculator, etc) and in these cases they run perfectly... It seems that it is just a java issue....

Mac mini, OS X Mavericks (10.9.2)

Posted on Apr 3, 2014 1:50 AM

Reply
2 replies

Java program does not work through a ssh connection

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.