java.lang.NoClassDefFoundError:com/google/common/base/Moreobjects
專案所屬環境不同,解決方案不一定適合所有人,見諒!!!
java.lang.NoClassDefFoundError:com/google/common/base/Moreobjects
編譯可以通過,執行報錯。很無奈,突然蹦出這鬼東西,經過一番猜想再結合專案環境(JDK1.6 + maven3.1.1)嚴重懷疑版本太低沒有自動依賴相關jar,因為程式碼中確實沒涉及到google的程式碼,搜了一下這個類所屬的jar,匯入依賴,完美解決。
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>19.0</version>
</dependency>
相關文章
- Cannot resolve com.demo.common:1.0-SNAPSHOTble to find main classAI
- 看懂「www.google.com」背後的邏輯Go
- Gradle sync failed: Cause: dl.google.com:443 failed to respondGradleAIGo
- [WARNING] warning: Class com.google.protobuf.Descriptors not found - continuing with a stub.GoUI
- springboot報錯java.lang.NoClassDefFoundErrorSpring BootJavaError
- Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.3/gradle-3HTTPGoAndroidMavenUIGradle
- issue: java.lang.NoClassDefFoundError: javax/el/ELManagerJavaError
- Caused by: java.lang.NoClassDefFoundError: javax/servlet/GenericFilterJavaErrorServletFilter
- com.google.gson.JsonSyntaxException: 2018-07-02T13:38:13.000ZGoJSONException
- Lowest Common Ancestor
- IRRATIONAL APPEAL TO COMMON BELIEFAPP
- 2.3.2 Application Common ObjectsAPPObject
- 2.2.3.1 Common Roles in a CDB
- 2.2.2.1 Common Users in a CDB
- C# Common utilsC#
- 2024牛客多校第一場A Bit Common & A Bit More Common
- Leetcode 14 Longest Common PrefixLeetCode
- Html language common symbolic entitiesHTMLSymbol
- 2.3.2.1 Creation of Application Common ObjectsAPPObject
- 2.2.6 Overview of Common Audit ConfigurationsView
- 2.2.4.3.1 What Makes a Grant Common
- [Javascript] Common axios service for reuseabilityJavaScriptiOS
- ch13_common_class
- B-A Bit More Common
- Azure Terraform(六)Common ModuleORM
- Json和Map互轉,三個包(org.json/net.sf.json/com.google.gson)JSONGo
- is java.lang.NoClassDefFoundError: org/springframework/dao/support/DaoSupport錯誤原因JavaErrorSpringFramework
- base/publicPath
- Ubuntu baseUbuntu
- base16,base32,base64 編碼方式的通俗講解
- LeetCode之Find Common Characters(Kotlin)LeetCodeKotlin
- .NET Core Common Language Runtime (CoreCLR)
- PostgreSQL DBA(136) - Develop(Common Mistakes)SQLdev
- Lowest Common Multiple Plus hd 2028
- 2.2.5 Overview of Common and Local Objects in a CDBViewObject
- 2.2.2 Overview of Common and Local Users in a CDBView
- Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/http/conn/socket/LayeredConnecExceptionthreadAIJavaErrorApacheHTTP
- theory_base