are you logged into the pi directly or are you telnetting / sshing into it? in the latter case you won't have an x session, which might account for the above.
I use the export DISPLAY=:0 that @koogs quoted all the time, when I want to start up a sketch to run on my Pi's screen when I am connected via SSH. Works great.
K, yes, I think so. But, reading a bit more, this appears to be a problem when logged into the PI natively, not through SSH, and running processing via command line. The Twitter bot link I posted is reporting exactly this.
@koogs I believe this user didn't have the full Raspbian image with the graphical interface running. In a terminal in X11 you can really just do processing-java ... and it works (without having to have the DISPLAY set)...
Answers
run
env | grep DISPLAY
what does that say?
try
export DISPLAY=:0.0
are you logged into the pi directly or are you telnetting / sshing into it? in the latter case you won't have an x session, which might account for the above.
ok, more details here:
https://forum.processing.org/two/discussion/17401/can-t-run-the-processing-java-command-from-raspberry-pi-terminal-for-a-twitter-bot
@koogs Wouldn't you get an X11 session if you use
ssh -X
?Kf
I use the
export DISPLAY=:0
that @koogs quoted all the time, when I want to start up a sketch to run on my Pi's screen when I am connected via SSH. Works great.K, yes, I think so. But, reading a bit more, this appears to be a problem when logged into the PI natively, not through SSH, and running processing via command line. The Twitter bot link I posted is reporting exactly this.
@koogs I believe this user didn't have the full Raspbian image with the graphical interface running. In a terminal in X11 you can really just do
processing-java ...
and it works (without having to have theDISPLAY
set)...