我尝试在IntelliJ上编译我的Java项目,但我遇到了这个问题:
Exception in thread "main" java.lang.IllegalArgumentException: Error decoding percent encoded characters
at java.base/sun.net.www.ParseUtil.decode(ParseUtil.java:218)
at java.base/jdk.internal.loader.URLClassPath$FileLoader.<init>(URLClassPath.java:1218)
at java.base/jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:491)
at java.base/jdk.internal.loader.URLClassPath$3.run(URLClassPath.java:485)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
at java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:484)
at java.base/jdk.internal.loader.URLClassPath.getLoader(URLClassPath.java:452)
at java.base/jdk.internal.loader.URLClassPath.getResource(URLClassPath.java:321)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:757)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:435)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:503)
*** java.lang.instrument ASSERTION FAILED ***: "result" with message agent load/premain call failed at open/src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 422
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
(jdk-19,苹果硅)
谢谢
可能是由于我的JDK和一些关于Java的配置
1条答案
按热度按时间ddrv8njm1#
当项目路径中有特殊字符(如表情符号)时会出现此问题。解决方法是将项目移到没有表情符号的其他目录中。