我从这个文件开始:
koko.java
运行这些命令:
javac koko.java
javah koko
(made the c file here)
gcc -/usr/jdk/jdk1.6.0_18/include -I/usr/jdk/jdk1.6.0_18/include/solaris -shared -fpic -o koko.so koko.c
java -Djava.library.path=. koko
但后来我收到错误声明:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home04/g/my_username/libkoko.so: ld.so.1: java: fatal: libstdc++.so.6: open failed: No such file or directory
at ...
at ...
.
.
at koko.<clinit>(koko.java:7)
我做错了什么?