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(SplashScreen.java:107)**
** at processing.appBase.(Base.java:85)**
Could not find the main class:processing.app.Base. 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?