'Eclipse giving error while building project - java.lang.IllegalArgumentException: Malformed \uxxxx encoding
error message while building project
Getting below error in eclipse 2021-12 while building project
Errors occurred during the build.
Errors running builder 'Java Builder' on project 'xxx'.
Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @536d97f8
Errors running builder 'Maven Project Builder' on project 'xxx'.
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
I am using JDK 1.8
I tried deleting project, restarting eclipse and also re-installing JDK.
I tried adding below VM arguments but not worked
EDIT:
I see lombok is causing this issue
-(Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @536d97f8 Errors running builder 'Maven Project Builder' on project 'xxx'.)
After installing lombok to eclipse IDE the issue got resolved.
But still I am getting below error while building - java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
I see answers for same error but its the issue with Ant and its giving error for maven. I don't see any path where "\" is used in project/POM. Ant: Malformed \uxxxx encoding in propertyfile task
EDIT 2:
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
Above issue resolved after following below solution (it has step to step guide to fix the error) Solution
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
