Why do I receive "wrong ELF class" errors when running my application created with MATLAB Builder for Java 1.1 (R2007a) on 64-bit Solaris?
显示 更早的评论
I have created a Java class using MATLAB Builder for Java 1.1 (R2007a) on my Solaris machine. I then created a Java program to call methods of this class. However when I execute the Java program I receive the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /devel/archive/R2007a/ship/unix/dist/bin/sol64/libnativemcl76.so: ld.so.1: /devel/archive/R2007a/ship/unix/dist/sys/java/jre/sol64/jre1.5.0/bin/java: fatal: /devel/archive/R2007a/ship/unix/dist/bin/sol64/libnativemcl76.so: wrong ELF class: ELFCLASS64
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.mathworks.toolbox.javabuilder.MWMCR.<clinit>(MWMCR.java:25)
at helloworld_jb_sol64.helloworld_jb_sol64class.<init>(helloworld_jb_sol64class.java:47)
at callHelloWorld.main(callHelloWorld.java:7)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Deploy to Java Applications Using MWArray Data API 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!