在eclipse ide中编写Java程序来创建hbase表时,我得到了这个错误,即使我添加了commons_lang-3.3.1.jar文件错误存在。
谁能帮我解决这个问题?
starting... Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/ArrayUtils at org.apache.hadoop.hbase.HConstants.<clinit>(HConstants.java:717) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionKey.<clinit>(HConnectionManager.java:446) at org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:199) at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:151) at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:129) at HBaseTest.main(HBaseTest.java:14) Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.ArrayUtils at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) ... 6 more