测试官网DEMO出错:
req.setAppKey("nls-service"); // appkey请从 "快速开始" 帮助页面的appkey列表中获取
req.authorize("", ""); Access Key ID和Access Key Secret
其它无改动,加了
com.google.gson_2.2.4.v201311231704.jar
netty-3.7.0.Final.jar
nls-service-sdk.jar
slf4j-simple-1.7.5.jar
包跟jdk 1.7
运行报错:
A java Exception has occurred
console:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/netty/channel/ChannelFactory
at main.java.com.demo.AsrDemo.(AsrDemo.java:14)
Caused by: java.lang.ClassNotFoundException: org.jboss.netty.channel.ChannelFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more
求帮忙解决问题!!谢谢