NOTICE: Our Community is moving. Get more information.
The terminal started from the console does not start bash as a logon shell and therefore does not invoke .profile when the terminal is launched.
You could put JAVA_HOME in your /etc/profile, or profile.d. You can also set JAVA_HOME in script that also launches Eclipse.