.mexa64文件无法执行

时间:2016-10-29 09:36:50

标签: matlab ubuntu mex

我创建了一个mex文件,但是当我尝试执行它时,我在命令行中收到此错误:

java.lang.UnsatisfiedLinkError: no nativeservices in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.mathworks.services.Prefs.<clinit>(Prefs.java:167)
    at com.mathworks.fatalexit.FatalExitFrame.<init>(FatalExitFrame.java:137)
    at com.mathworks.fatalexit.FatalExitFrame$13.run(FatalExitFrame.java:770)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: com.mathworks.services.Prefs.nativeGetPreferencesDirectory()Ljava/lang/String;
    at com.mathworks.services.Prefs.nativeGetPreferencesDirectory(Native Method)
    at com.mathworks.services.Prefs.getPropertyDirectory(Prefs.java:198)
    at com.mathworks.services.Prefs.load(Prefs.java:254)
    at com.mathworks.services.Prefs.<clinit>(Prefs.java:174)
    at com.mathworks.fatalexit.FatalExitFrame.<init>(FatalExitFrame.java:137)
    at com.mathworks.fatalexit.FatalExitFrame$13.run(FatalExitFrame.java:770)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Killed

我正在使用Ubuntu 16.04和MatlabR2016b获得官方许可。我是ubuntu和.mex文件的新手,所以我真的不知道发生了什么。

1 个答案:

答案 0 :(得分:0)

This thread看起来很相似。从我看来,你的路径没有所需的类文件nativeservices