tvst
August 11th, 2008, 10:16 PM
I was trying to get Matlab to run on Ubuntu 8.04, but I kept getting the following error:
Unable to initialize com.mathworks.mwswing.MJStartup
Fatal Error on startup: Failure loading desktop class
After reading many forums, most of which told me to use a different Java runtime or tell Matlab to use a different toolkit, I bumped onto the solution. Open a terminal and navigate to the folder where you installed Matlab, then:
$ ln -s sys/java/jre/glnxa64/jre1.6.0/lib/i386/motif21 motif12
The name of the folder "i386" above depends on the architecture for which you installed Matlab. It could be something like "amd64", for example.
You're done! Why this works, I haven't a clue. It seems from the solution that Matlab is trying to read a folder that does not exist, so we have to tell it where to read instead. Strange... And it turns out I did not have to do anything that was written on any of the threads to make it work with Compiz.
Unable to initialize com.mathworks.mwswing.MJStartup
Fatal Error on startup: Failure loading desktop class
After reading many forums, most of which told me to use a different Java runtime or tell Matlab to use a different toolkit, I bumped onto the solution. Open a terminal and navigate to the folder where you installed Matlab, then:
$ ln -s sys/java/jre/glnxa64/jre1.6.0/lib/i386/motif21 motif12
The name of the folder "i386" above depends on the architecture for which you installed Matlab. It could be something like "amd64", for example.
You're done! Why this works, I haven't a clue. It seems from the solution that Matlab is trying to read a folder that does not exist, so we have to tell it where to read instead. Strange... And it turns out I did not have to do anything that was written on any of the threads to make it work with Compiz.