PIsingh
Posts: 12
Joined: Tue Dec 24, 2013 11:52 pm

Exception in java.lang.internalError: Can't connect to x11

Wed Dec 25, 2013 12:40 am

this is my third day researching , googling to find some thing on the topic that works. I have found several solution to this problem but nothing seems to work for me. I have manage to figure that it has something to do with the x server and not my java code.
I have hard wired the pi to the my router. I have been logining into my pi using putty shh and xming as a desktop environment with x11 forwarding. Even though i was able to successfully login in remotely and run a java program with the swing & awt GUI class. I could seem to run my program with it. it is a gui program that when I press a button and it makes the pin on the pi high.
The program works fine if i ran it as while connecting my pi to a screen via hdmi, but i get an error, while i try to run the program using putty ssh xming x11 forwarding I get an error.
Things i have tried--
export $DISPLAY =0
export $DISPLAY =0.0
export $DISPLAY =10.0
xhost +
unset DISPLAY
-Djava.awt.headless=true
ran my program under root user
Following images screen shorts of the errors
http://www.flickr.com/photos/47356022@N05/11539292815
http://www.flickr.com/photos/47356022@N05/11539290275

Return to “Troubleshooting”