com2 - 它是與com端口(rxtx庫)一起使用的類。 當我在按鈕上運行我的GWT和新聞網站,運行這個功能和錯誤:在第一次運行Gwt無法使用com端口rxtx
public String greetServer(String input) {
try {
comm2 COM = new comm2("COM3", "$KE,WR,6,1\n");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return input;
}
Caused by: java.lang.NoClassDefFoundError: Could not initialize class gnu.io.CommPortIdentifier
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.google.appengine.tools.development.agent.runtime.RuntimeHelper.checkRestricted(RuntimeHelper.java:69)
at com.google.appengine.tools.development.agent.runtime.Runtime.checkRestricted(Runtime.java:64)
at com.aaa.server.comm2.<init>(comm2.java:17)
at com.aaa.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:115)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
... 34 more
我在錯誤的
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.rxtxSerial)
你有正確安裝的所有文件? – 2012-07-06 12:41:00
你是什麼意思? – 2012-07-06 12:48:43
爲什麼一個com-port庫在GAE上工作? – 2012-07-06 12:59:54