1. 程式人生 > >org.apache.commons.lang.text.StrLookup缺失

org.apache.commons.lang.text.StrLookup缺失

 

遇到上述問題,莫急,估計你已經新增過common-lang 包,但是還是不行

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/text/StrLookup
	at com.zz.dataAccess.Properties.main(Properties.java:10)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.text.StrLookup
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	... 1 more

原因是因為你新增的lang包就沒有引入這個包,嘿嘿