栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

idea报错(系统找不到指定的路径)

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

idea报错(系统找不到指定的路径)

昨天还好好的,突然就崩溃了,啥都运行不了,愁死
后来修改了idea的缓存路径(原来在c盘,可能是中午乱码导致的)

错误信息

Error:Internal error: (java.io.FileNotFoundException) C:Users鐜嬫旦娉�.IntelliJIdea2017.3systemcompile-servertest_659a0244timestampsdata (系统找不到指定的路径。)
java.io.FileNotFoundException: C:Users鐜嬫旦娉?.IntelliJIdea2017.3systemcompile-servertest_659a0244timestampsdata (系统找不到指定的路径。)
	at java.io.RandomAccessFile.open0(Native Method)
	at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
	at java.io.RandomAccessFile.(RandomAccessFile.java:243)
	at com.intellij.util.io.PagedFileStorage.resizeFile(PagedFileStorage.java:357)
	at com.intellij.util.io.PagedFileStorage.resize(PagedFileStorage.java:340)
	at com.intellij.util.io.ResizeableMappedFile.(ResizeableMappedFile.java:60)
	at com.intellij.util.io.PersistentBTreeEnumerator.(PersistentBTreeEnumerator.java:82)
	at com.intellij.util.io.PersistentEnumeratorDelegate.(PersistentEnumeratorDelegate.java:47)
	at com.intellij.util.io.PersistentHashMap.(PersistentHashMap.java:146)
	at com.intellij.util.io.PersistentHashMap.(PersistentHashMap.java:137)
	at com.intellij.util.io.PersistentHashMap.(PersistentHashMap.java:129)
	at com.intellij.util.io.PersistentHashMap.(PersistentHashMap.java:125)
	at org.jetbrains.jps.incremental.storage.AbstractStateStorage.createMap(AbstractStateStorage.java:136)
	at org.jetbrains.jps.incremental.storage.AbstractStateStorage.(AbstractStateStorage.java:41)
	at org.jetbrains.jps.incremental.storage.TimestampStorage.(TimestampStorage.java:36)
	at org.jetbrains.jps.incremental.storage.ProjectTimestamps.(ProjectTimestamps.java:36)
	at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:110)
	at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:280)
	at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:138)
	at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:235)
	at org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda$executeOnPooledThread$0(SharedThreadPoolImpl.java:42)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Please perform full project rebuild (Build | Rebuild Project)

【1】关闭IDEA,并将C:UsersAdministrator下的.IntelliJIdea2019.3整个文件夹拷贝到其他盘符(这里我把文件夹放到了F盘根目录下的 “Intellj IDEA cach” 文件夹中),并在F:Intellj IDEA cach.IntelliJIdea2017.3文件夹下创建plugins,log,system,config文件夹 (如果这四个文件夹已存在,无需再次创建,如果已存在的文件夹缺少四个中的一个,都需要创建好了补上)

【2】打开IDEA安装目录下的bin文件夹,找到该文件夹下的idea.properties文件

【3】对idea.properties文件进行编辑修改(如图所示):
我们需要修改的有这四条配置:
idea.config.path=F:/Intellj IDEA cach/.IntelliJIdea2017.3/config
idea.system.path=F:/Intellj IDEA cach/.IntelliJIdea2017.3/system
idea.plugins.path=F:/Intellj IDEA cach/.IntelliJIdea2017.3/plugins
idea.log.path=F:/Intellj IDEA cach/.IntelliJIdea2017.3/log
【后面标红的目录,即为我们第一步创建的文件夹的绝对路径】
这里需要注意将前面的#号去掉以使设置生效。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/732982.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号