我无法在运行 Ubuntu 14.04 的笔记本电脑上安装 MATLAB 版本 2014a。安装总是失败并出现错误。
Error: Could not find or load main class com.mathworks.professionalinstaller.Launcher
我尝试从 ISO 本身安装 MATLAB 软件,但错误仍然存在。我发布了安装 MATLAB 所用命令的完整历史记录
siddharth@Mephisto:/media/siddharth/MATHWORKS_R2014A$ sudo ./install -v -javadir /usr/lib/jvm/jre1.8.0/
Preparing installation files ...
-> DVD = /media/siddharth/MATHWORKS_R2014A
-> ARCH = glnxa64
-> DISPLAY = :0
-> TESTONLY = 0
-> JRE_LOC = /tmp/mathworks_12048/sys/java/jre/glnxa64/jre
-> LD_LIBRARY_PATH = /tmp/mathworks_12048/bin/glnxa64
Command to run:
/tmp/mathworks_12048/sys/java/jre/glnxa64/jre/bin/java -Xmx512m -splash:"/media/siddharth/MATHWORKS_R2014A/java/splash.png" -Djava.ext.dirs=/tmp/mathworks_12048/sys/java/jre/glnxa64/jre/lib/ext:/tmp/mathworks_12048/java/jar:/tmp/mathworks_12048/java/jar/ko_KR:/tmp/mathworks_12048/java/jar/ja_JP:/tmp/mathworks_12048/java/jar/zh_CN:/tmp/mathworks_12048/java/jarext:/tmp/mathworks_12048/java/jarext/webservices:/tmp/mathworks_12048/java/jarext/webservices/ws_client_core:/tmp/mathworks_12048/java/jarext/webservices/mcr_dws_client:/tmp/mathworks_12048/java/jarext/guice:/tmp/mathworks_12048/java/jarext/axis2 com/mathworks/professionalinstaller/Launcher -root "/media/siddharth/MATHWORKS_R2014A" -tmpdir "/tmp/mathworks_12048"
Installing ...
Error: Could not find or load main class com.mathworks.professionalinstaller.Launcher
Finished
答案1
我自己解决了这个问题。原来我试图安装 MATLAB 的 ISO 文件有一个损坏的java
二进制文件。我通过复制 JDK Java 二进制文件来替换损坏的二进制文件来修复它,并且成功了。