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!