Cannot start matlab 2007b in ubuntu/xubuntu (hardy alpha-5)

I have just upgraded the ubuntu/xubuntu 7.10 of my computers (home/office) to 8.04 alpha 5. I found that I cannot start matlab 2007b even I reinstall it. The terminal shows the following and then aborts matlab (I have installed matlab in /usr/local/matlab75/):

Previously on Ubuntu 7.10, Matlab crash.
But on 8.04, firstly, without any other java package, matlab will run flawlessly.

However, after installing java-1.5.0.15 (because Eclipse has recommended on that for stability), execute matlab will result in the following error messages
even when I
export MATLAB_JAVA=/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre

hi all,
i have been encountering same problem on kubuntu. when i ran from konsole, i got the same error, however matlab worked fine; but when launched from kicker i see splash screen and then it gets away.
by using bjtaylor's method, now i got rid of error messages when i run from console, but still i cannot run from kicker, nor i can click bash script from dolphin: result is same, splash screen appears and then whole process quits.

In order to run MATLAB from any sort of menu, you have to pass it the "-desktop" option. Otherwise, it looks for a terminal tied to it and, finding none, dies. the -desktop option tells MATLAB that it doesn't have a terminal associated with it, so it doesn't look or die as a result.

I am using Matlab 2008b and it works out perfectly, but my problem is with Alt-Gr key(because it doesnt work). I have changed java with:
export MATLAB_JAVA="/usr/lib64/jvm/java-6-sun-1.6.0.10/jre"
export MATLAB_JAVA="/usr/lib64/jvm/java-6-sun/jre/"

2) Put in the symbolic links(update the 'matlab' link in /usr/local/bin to point to this matlab in /media/disk/matlabroot/bin.):
ln -s /media/disk/MATLAB/bin/matlab /usr/local/bin/matlab
ln -s /media/disk/MATLAB/bin/mex /usr/local/bin/mex

3) for getting the toolbars 1. Open the executable Matlab script, ~/matlab/bin/matlab in gedit. 2. Copy and paste "export AWT_TOOLKIT=MToolkit" into the first line of the file. 3. Save the file.

Can you help with this problem?

Provide an answer of your own, or ask
chriswcy
for more information if necessary.