当前位置:   article > 正文

idea因为中文路径构建失败_internal error (java.io.ioexception): cannot find

internal error (java.io.ioexception): cannot find intellij idea project file

报错如下:

  1. 内部错误 (java.io.IOException): Cannot find IntelliJ IDEA project files at D:\code\鎴戠殑\鏈湴鏂囨。妫�绱�
  2. java.io.IOException: Cannot find IntelliJ IDEA project files at D:\code\鎴戠殑\鏈湴鏂囨。妫�绱�
  3. at org.jetbrains.jps.model.serialization.JpsProjectLoader.loadProject(JpsProjectLoader.java:121)
  4. at org.jetbrains.jps.model.serialization.JpsProjectLoader.loadProject(JpsProjectLoader.java:98)
  5. at org.jetbrains.jps.model.serialization.impl.JpsSerializationManagerImpl.loadModel(JpsSerializationManagerImpl.java:23)
  6. at org.jetbrains.jps.cmdline.JpsModelLoaderImpl.loadModel(JpsModelLoaderImpl.java:35)
  7. at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:67)
  8. at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:363)
  9. at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:212)
  10. at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:211)
  11. at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  12. at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  13. at java.base/java.lang.Thread.run(Thread.java:829)
  14. 请执行完整的项目重新构建(构建 | 重新构建项目)

这是因为编码问题,导致找不到路径

如: win11系统设置了utf-8编码,idea各种文件也是utf-8但是就会出现乱码

是因为jdk选的是GBK

编译的时候,设置utf-8就没问题了

设置->构建->编译器->java编译器

 -encoding utf-8

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/人工智能uu/article/detail/1010566
推荐阅读
相关标签
  

闽ICP备14008679号