com2 - it's class which work with com port ( rxtx library ).
When I run my site on gwt and press on button run this function and errors:
public String greetServer(String input) {
try {
comm2 COM = new comm2("COM3", "$KE,WR,6,1
");
} 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
on first run i see in error's
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.rxtxSerial)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…