我正在尝试在 Ubuntu Linux 32 位上使用 Websphere Realtime Java VM 运行实时 Java 代码。我可以获得要构建的代码,但由于某种原因,VM 无法找到实现 javax.realtime 类的本机库并引发 UnsatisfiedLinkError。任何有关如何解决此问题的想法将不胜感激。
import javax.realtime.*;
public class HelloRTWorld {
public static void main(String[] args) {
RealtimeThread rt = new RealtimeThread() {
public void run() {
System.out.println("Hello RT World");
}
};
rt.start();
}
}
这是错误跟踪:
Exception in thread "main" java.lang.UnsatisfiedLinkError: javax/realtime/RealtimeThread.putAsyncHandlerClassToThread(Ljava/lang/Class;)V
at javax.realtime.RealtimeThread.<clinit>(RealtimeThread.java:122)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:233)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at net.suhrid.HelloWorld.main(HelloWorld.java:9)