2015年4月15日 星期三

javax.smartcardio無法正常在eclpise import的問題

因為工作關係所以需要透過java smart api去讀卡機…

在eclipse 中要import時…發現 javax.smartcardio會無法import進來…

被eclipse檔掉這類的class

所以需另外的給rule…讓eclipse accept可以使用這類的api...加入方法如下:
  1. create a java project or open an existing project
  2. right-click the project and open the properties dialog
  3. select build path -> libraries tab and unfold the "JRE System Library" tree
  4. select the entry "Access Rules" and push the "edit" button on the right
  5. you can apply a rule with the "add" button: set the drop down to "accessible" and enter the value “javax/smartcardio/**
喵的…讓我找好久解法…