Trying to run arduino from terminal (Ubuntu)

I am running the arduino from the command line and am getting this error message.

Exception in thread “main” java.lang.ExceptionInInitializerError
Caused by: java.awt.HeadlessException
** at java.awt.SplashScreen.getSpalashScreen(**
** at processing.appBase.(**
Could not find the main Program will exist.

Which version of Ubuntu? Which version of the Arduino IDE? Where did you get that IDE version? Arduino website or repository? Did you move or copy the arduino shell script to another directory after unpacking it? Did you install the Openjdk runtime package?