尝试了一切,但解决方案,我添加到 buildpath,通过 manifest.mf 导入,但我不断收到这个异常。在构建路径中:commons-codec-1.8.jar、commons-logging-1.1.1.jar、httpclient-4.2.5.jar、httpcore-4.2.4.jar。我尝试使用 httpmime-4.0.1 和 selenium-server-standalone-2.0b3.jar,但我不断收到此异常。
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/httpEntity
at autorun.Main.main<Main.java:101>
Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity
at java.net.URLClassLoader$1.run<Unknown Source>
at java.net.URLClassLoader$1.run<Unknown Source>
at java.security.AccesController.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