[問題] JIN問題提問

看板java作者 (QQ)時間13年前 (2011/07/05 15:59), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
最近在寫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
文章代碼(AID): #1E4iH-7I (java)