So the first part of the PATH is incorrect but the second finds java. But the java it finds knows nothing about processing.app.base. So it throws the error.
I agree with the first part, but not the second part. I commented out that line in my arduino shell script, and the IDE still ran. So the Java in my PATH, according to your logic, does know about processing.app.base.
Ubuntu v11.10