[問題] JIN問題提問
最近在寫Android的程式
因需要RS232傳值所以開始研究JNI
參考了這個網站
http://cheng-min-i-taiwan.blogspot.com/2011/04/java-native-interface-jni.html?showComment=1309849525798#c7129719381868971815
但每當我執行javah -jni指令時
終端機上都會出現
Exception in thread "main" java.io.IOException: can't find class file
Location.class in
java.net.URLClassLoader{urls=[file:/usr/lib/jvm/java-1.5.0-gcj-4.5/jre/lib/rt.jar],
parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:./],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
at gnu.classpath.tools.javah.Main.getClass(libgcj-tools.so.11)
at gnu.classpath.tools.javah.Main.run(libgcj-tools.so.11)
at gnu.classpath.tools.javah.Main.main(libgcj-tools.so.11)
google過後仍然沒有發現解決方式
故向版上高手求助
懇請大家幫忙
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.117.59.241