我尝试/usr/local/MATLAB/R2012a/bin/matlab
在 Ubuntu 14.04 上运行,但在启动时它给出以下错误消息:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/databinding/ADBBean
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.mathworks.mlwebservices.ControllingProductProvider.getControllingProducts(ControllingProductProvider.java:11)
at com.mathworks.mlwebservices.DefaultActivationService.<init>(DefaultActivationService.java:34)
at com.mathworks.activationclient.ActivationApplication.createActivationService(ActivationApplication.java:205)
at com.mathworks.activationclient.ActivationApplication.<init>(ActivationApplication.java:194)
at com.mathworks.activationclient.ActivationApplication.main(ActivationApplication.java:144)
Caused by: java.lang.ClassNotFoundException: org.apache.axis2.databinding.ADBBean
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 17 more
我不知道如何调试这个问题。有什么建议吗?
如果适用的话,我会参加/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java
。
谢谢!
答案1
没关系,解决了。原来我的 MATLAB 许可证已过期,它正在尝试运行安装,这需要 root 权限,因此 sudo /usr/local/MATLAB/R2012a/bin/matlab 允许安装正确运行。谢谢!