简体   繁体   English

eclipse .jar导出

[英]eclipse .jar export

Just finished my project in Eclipse, using Sphinx for voice recognition. 刚刚在Eclipse中完成了我的项目,使用Sphinx进行语音识别。 In eclipse the program runs fine, but after i export the .jar and run it from command line i get this: 在Eclipse中,程序运行正常,但是在我导出.jar并从命令行运行它后,我得到了:

Exception in thread "main" java.lang.NoClassDefFoundError: edu/cmu/sphinx/util/p
rops/ConfigurationManager
        at edu.cmu.sphinx.demo.helloworld.HelloWorld.main(HelloWorld.java:34)
Caused by: java.lang.ClassNotFoundException: edu.cmu.sphinx.util.props.Configura
tionManager
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 1 more

Anyone knows what im doing wrong? 有人知道我在做什么错吗? Thanks! 谢谢!

the third party (Sphynx) is missing from your classpath try: 您的类路径中缺少第三方(Sphynx),请尝试:

java -cp ; java -cp; classname ..... 班级名称 .....

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM