【idea】重装系统(格式化C盘后)idea无法导入maven(jdk重装了,版本不同),结果报错!
【以下部分截图】
2019-11-25 09:48:49,045 [ 108964] WARN - #org.jetbrains.idea.maven - Cannot open index C:\Users\**\.IntelliJIdea2019.2\system\Maven\Indices\Index2
org.jetbrains.idea.maven.indices.MavenIndexException: Cannot open index C:\Users\**\.IntelliJIdea2019.2\system\Maven\Indices\Index2
at org.jetbrains.idea.maven.indices.MavenIndex.open(MavenIndex.java:186)
at org.jetbrains.idea.maven.indices.MavenIndex.<init>(MavenIndex.java:141)
at org.jetbrains.idea.maven.indices.MavenIndices.load(MavenIndices.java:58)
at org.jetbrains.idea.maven.indices.MavenIndices.<init>(MavenIndices.java:46)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.ensureInitialized(MavenIndicesManager.java:98)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.getIndicesObject(MavenIndicesManager.java:81)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.ensureRemoteIndexExist(MavenIndicesManager.java:157)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.ensureIndicesExist(MavenIndicesManager.java:192)
at org.jetbrains.idea.maven.indices.MavenProjectIndicesManager$3.run(MavenProjectIndicesManager.java:108)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:324)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:314)
at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:264)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:278)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:233)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:231)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:368)
at com.intellij.util.Alarm$Request.run(Alarm.java:355)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:224)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:207)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:29)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.lambda$run$0(BoundedTaskExecutor.java:185)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:208)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:181)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.RuntimeException: Cannot reconnect.
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:82)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.createIndex(MavenIndexerWrapper.java:60)
at org.jetbrains.idea.maven.indices.MavenIndex.createContext(MavenIndex.java:374)
at org.jetbrains.idea.maven.indices.MavenIndex.access$300(MavenIndex.java:40)
at org.jetbrains.idea.maven.indices.MavenIndex$IndexData.<init>(MavenIndex.java:665)
at org.jetbrains.idea.maven.indices.MavenIndex.doOpen(MavenIndex.java:209)
at org.jetbrains.idea.maven.indices.MavenIndex.open(MavenIndex.java:183)
... 27 more
Caused by: java.rmi.RemoteException: Cannot start maven service; nested exception is:
com.intellij.execution.ExecutionException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:238)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:75)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenServerManager$3.create(MavenServerManager.java:445)
at org.jetbrains.idea.maven.server.MavenServerManager$3.create(MavenServerManager.java:441)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getRemoteId(MavenIndexerWrapper.java:142)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.lambda$createIndex$0(MavenIndexerWrapper.java:60)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
... 33 more
Caused by: com.intellij.execution.ExecutionException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:143)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:226)
... 41 more
Caused by: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:412)
at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:45)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:38)
at org.jetbrains.idea.maven.server.MavenServerManager$MavenServerCMDState$1.<init>(MavenServerManager.java:768)
at org.jetbrains.idea.maven.server.MavenServerManager$MavenServerCMDState.startProcess(MavenServerManager.java:768)
at org.jetbrains.idea.maven.server.MavenServerManager$MavenServerCMDState.execute(MavenServerManager.java:759)
at com.intellij.execution.rmi.RemoteProcessSupport.startProcess(RemoteProcessSupport.java:196)
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:123)
... 42 more
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:443)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:408)
... 49 more
Caused by: java.io.IOException: CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:420)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:151)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 52 more
2019-11-25 09:48:49,071 [ 108990] WARN - #org.jetbrains.idea.maven - Cannot reconnect.
java.lang.RuntimeException: Cannot reconnect.
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:82)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.createIndex(MavenIndexerWrapper.java:60)
at org.jetbrains.idea.maven.indices.MavenIndex.createContext(MavenIndex.java:374)
at org.jetbrains.idea.maven.indices.MavenIndex.access$300(MavenIndex.java:40)
at org.jetbrains.idea.maven.indices.MavenIndex$IndexData.<init>(MavenIndex.java:665)
at org.jetbrains.idea.maven.indices.MavenIndex.doOpen(MavenIndex.java:209)
at org.jetbrains.idea.maven.indices.MavenIndex.open(MavenIndex.java:176)
at org.jetbrains.idea.maven.indices.MavenIndex.<init>(MavenIndex.java:93)
at org.jetbrains.idea.maven.indices.MavenIndices.add(MavenIndices.java:92)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.ensureRemoteIndexExist(MavenIndicesManager.java:158)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.ensureIndicesExist(MavenIndicesManager.java:192)
at org.jetbrains.idea.maven.indices.MavenProjectIndicesManager$3.run(MavenProjectIndicesManager.java:108)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:324)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:314)
at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:264)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:278)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:233)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:231)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:368)
at com.intellij.util.Alarm$Request.run(Alarm.java:355)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:224)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:207)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:29)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.lambda$run$0(BoundedTaskExecutor.java:185)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:208)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:181)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.rmi.RemoteException: Cannot start maven service; nested exception is:
com.intellij.execution.ExecutionException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:238)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:75)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenServerManager$3.create(MavenServerManager.java:445)
at org.jetbrains.idea.maven.server.MavenServerManager$3.create(MavenServerManager.java:441)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getRemoteId(MavenIndexerWrapper.java:142)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.lambda$createIndex$0(MavenIndexerWrapper.java:60)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
... 30 more
Caused by: com.intellij.execution.ExecutionException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:143)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:226)
... 38 more
Caused by: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:412)
at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:45)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:38)
at org.jetbrains.idea.maven.server.MavenServerManager$MavenServerCMDState$1.<init>(MavenServerManager.java:768)
at org.jetbrains.idea.maven.server.MavenServerManager$MavenServerCMDState.startProcess(MavenServerManager.java:768)
at org.jetbrains.idea.maven.server.MavenServerManager$MavenServerCMDState.execute(MavenServerManager.java:759)
at com.intellij.execution.rmi.RemoteProcessSupport.startProcess(RemoteProcessSupport.java:196)
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:123)
... 39 more
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:443)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:408)
... 46 more
Caused by: java.io.IOException: CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:420)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:151)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 49 more
2019-11-25 09:48:49,087 [ 109006] WARN - #org.jetbrains.idea.maven - Cannot open index C:\Users\**\.IntelliJIdea2019.2\system\Maven\Indices\Index0
org.jetbrains.idea.maven.indices.MavenIndexException: Cannot open index C:\Users\**\.IntelliJIdea2019.2\system\Maven\Indices\Index0
at org.jetbrains.idea.maven.indices.MavenIndex.open(MavenIndex.java:186)
at org.jetbrains.idea.maven.indices.MavenIndex.<init>(MavenIndex.java:93)
at org.jetbrains.idea.maven.indices.MavenIndices.add(MavenIndices.java:92)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.ensureRemoteIndexExist(MavenIndicesManager.java:158)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.ensureIndicesExist(MavenIndicesManager.java:192)
at org.jetbrains.idea.maven.indices.MavenProjectIndicesManager$3.run(MavenProjectIndicesManager.java:108)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:324)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:314)
at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:264)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:278)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:233)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:231)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:368)
at com.intellij.util.Alarm$Request.run(Alarm.java:355)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:224)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:207)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:29)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.lambda$run$0(BoundedTaskExecutor.java:185)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:208)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:181)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.RuntimeException: Cannot reconnect.
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:82)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.createIndex(MavenIndexerWrapper.java:60)
at org.jetbrains.idea.maven.indices.MavenIndex.createContext(MavenIndex.java:374)
at org.jetbrains.idea.maven.indices.MavenIndex.access$300(MavenIndex.java:40)
at org.jetbrains.idea.maven.indices.MavenIndex$IndexData.<init>(MavenIndex.java:665)
at org.jetbrains.idea.maven.indices.MavenIndex.doOpen(MavenIndex.java:209)
at org.jetbrains.idea.maven.indices.MavenIndex.open(MavenIndex.java:183)
... 24 more
Caused by: java.rmi.RemoteException: Cannot start maven service; nested exception is:
com.intellij.execution.ExecutionException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:238)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:75)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenServerManager$3.create(MavenServerManager.java:445)
at org.jetbrains.idea.maven.server.MavenServerManager$3.create(MavenServerManager.java:441)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getRemoteId(MavenIndexerWrapper.java:142)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.lambda$createIndex$0(MavenIndexerWrapper.java:60)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
... 30 more
Caused by: com.intellij.execution.ExecutionException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:143)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:226)
... 38 more
Caused by: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:412)
at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:45)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:38)
at org.jetbrains.idea.maven.server.MavenServerManager$MavenServerCMDState$1.<init>(MavenServerManager.java:768)
at org.jetbrains.idea.maven.server.MavenServerManager$MavenServerCMDState.startProcess(MavenServerManager.java:768)
at org.jetbrains.idea.maven.server.MavenServerManager$MavenServerCMDState.execute(MavenServerManager.java:759)
at com.intellij.execution.rmi.RemoteProcessSupport.startProcess(RemoteProcessSupport.java:196)
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:123)
... 39 more
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:443)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:408)
... 46 more
Caused by: java.io.IOException: CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:420)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:151)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 49 more
2019-11-25 09:48:49,134 [ 109053] WARN - #org.jetbrains.idea.maven - Cannot reconnect.
java.lang.RuntimeException: Cannot reconnect.
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:82)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.createIndex(MavenIndexerWrapper.java:60)
at org.jetbrains.idea.maven.indices.MavenIndex.createContext(MavenIndex.java:374)
at org.jetbrains.idea.maven.indices.MavenIndex.access$300(MavenIndex.java:40)
at org.jetbrains.idea.maven.indices.MavenIndex$IndexData.<init>(MavenIndex.java:665)
at org.jetbrains.idea.maven.indices.MavenIndex.doOpen(MavenIndex.java:209)
at org.jetbrains.idea.maven.indices.MavenIndex.open(MavenIndex.java:176)
at org.jetbrains.idea.maven.indices.MavenIndex.<init>(MavenIndex.java:93)
at org.jetbrains.idea.maven.indices.MavenIndices.add(MavenIndices.java:92)
at org.jetbrains.idea.maven.indices.MavenIndicesManager.createIndexForLocalRepo(MavenIndicesManager.java:174)
at org.jetbrains.idea.maven.onlinecompletion.MavenCompletionProviderFactory.addLocalIndex(MavenCompletionProviderFactory.java:54)
at org.jetbrains.idea.maven.onlinecompletion.MavenCompletionProviderFactory.getProviders(MavenCompletionProviderFactory.java:35)
at org.jetbrains.idea.maven.onlinecompletion.DependencySearchService.reload(DependencySearchService.java:54)
at org.jetbrains.idea.maven.indices.MavenProjectIndicesManager$3.run(MavenProjectIndicesManager.java:110)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:324)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:314)
at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:264)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:278)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:233)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:231)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:368)
at com.intellij.util.Alarm$Request.run(Alarm.java:355)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:224)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:207)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:29)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.lambda$run$0(BoundedTaskExecutor.java:185)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:208)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:181)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.rmi.RemoteException: Cannot start maven service; nested exception is:
com.intellij.execution.ExecutionException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:238)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:75)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenServerManager$3.create(MavenServerManager.java:445)
at org.jetbrains.idea.maven.server.MavenServerManager$3.create(MavenServerManager.java:441)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:41)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.getRemoteId(MavenIndexerWrapper.java:142)
at org.jetbrains.idea.maven.server.MavenIndexerWrapper.lambda$createIndex$0(MavenIndexerWrapper.java:60)
at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
... 32 more
Caused by: com.intellij.execution.ExecutionException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:143)
at org.jetbrains.idea.maven.server.MavenServerManager.create(MavenServerManager.java:226)
... 40 more
Caused by: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:412)
at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:45)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:38)
at org.jetbrains.idea.maven.server.MavenServerManager$MavenServerCMDState$1.<init>(MavenServerManager.java:768)
at org.jetbrains.idea.maven.server.MavenServerManager$MavenServerCMDState.startProcess(MavenServerManager.java:768)
at org.jetbrains.idea.maven.server.MavenServerManager$MavenServerCMDState.execute(MavenServerManager.java:759)
at com.intellij.execution.rmi.RemoteProcessSupport.startProcess(RemoteProcessSupport.java:196)
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:123)
... 41 more
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk8\bin\java.exe" (in directory "F:\tools\IntelliJ IDEA 2019.2.2\bin"): CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:443)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:408)
... 48 more
Caused by: java.io.IOException: CreateProcess error=2, 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:420)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:151)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 51 more
【以上部分截图】
原因:maven依赖的jdk没设置好,因为重装电脑原来的额jdk没了,重新装jdk,版本对不上(小版本)
解决:

修改红色的地方的jdk版本即可,打开时这里是红色代表原来的jdk没有了。
【idea】重装系统(格式化C盘后)idea无法导入maven(jdk重装了,版本不同),结果报错!的更多相关文章
- U盘重装系统:手把手教你怎么使用U盘重装系统、清除登录密码
前言 之前讲过<不懂电脑也能自己重装系统,可视化傻瓜式一键重装系统不求人!!!>,这是针对可以正常开机的情况下直接使用浏览器功能重装系统, 那不能正常开机或者忘记密码的怎么办呢? 不慌,今 ...
- 第十三天 -- 如何用U盘重装系统Win10以及如何用VMware12安装Win10
U盘制作启动盘 1.在电脑上插入U盘,关闭安全软件杀毒工具,然后打开装机吧U盘启动盘制作工具 2.选择刚插入的U盘,勾选上,点击一键制作启动U盘,制作前U盘数据必须转移备份: 3.选择格式化U盘,记得 ...
- win7重装系统时,使用PE工具箱进入系统看到的“C盘变成0.2G,D盘变成48G左右”这是什么回事?
引入: 今天帮同学重装系统,重装系统使用的方法是利用PE工具箱制作出启动U盘,进行重装系统. 我的步骤是 第一步:开机按F2挂载U盘优先启动,于是开机时就进入PE微系统 第二步: 用分区工具(Disk ...
- U盘PE重装系统导致D、E、F盘消失
U盘PE重装系统导致D.E.F盘消失 听语音 原创 | 浏览:1251 | 更新:2014-08-18 18:46 | 标签:u盘 重装 解决使用U盘PE重装系统导致的错误问题 工具/原料 制作好 ...
- EFS加密解密----重装系统后
重装系统尤其是格式化重装系统之后,如果没有正确地备份私钥,那么加密的文件将无法打开,加密的文件也暂时没有办法进行快速破解. 并非重装后用相同用户名+密码就可以解密的. Advanced EFS Dat ...
- iMac 重装系统
iMac重装系统相当简单.开机的时候按下option键选择恢复系统或者在开机前按下 command+R然后按开机键松开同样会进入系统选择界面: 当中有 4 个选项:Restore From Time ...
- atitit.修复xp 操作系统--重装系统--保留原来文件不丢失
atitit.修复xp 操作系统--重装系统--保留原来文件不丢失 1. 修复目标...保持c盘文件,恢复system文件走ok... 1 2. 重装系统以前的操作 1 2.1. 避免格式化c盘/gh ...
- 换SSD硬盘,重装系统,一阵子忙乱
许久没重装过系统了,低声下气地问老板要了一块SSD硬盘,不马上安装上手痒得难受,但年底这个时候重装系统绝对忙乱,差点耽误了一份申请表和一份培训记录表. SSD安装:先从网上找相关贴子,最主要的一个 ...
- 华硕本本重装系统后出现can not open file c:\RECOVERY.DAT
华硕本本重装系统后出现can not open file c:\RECOVERY.DAT很多网友会觉得困惑,不知道为什么会这样,下面我就为大家来解决这个问题,方法一: 这个问题就出在华硕自带系统都是装 ...
- oracle 数据恢复,只有oradata文件夹里的文件,没有备份文件的数据库恢复,重装系统后,oracle 10g数据库恢复
格式化重装系统后,才想起来oracle 10g 数据库没有做备份,开始以为很麻烦,没想到数据库恢复的还挺顺利的 恢复方法: 1,把原来的数据库文件备份,(D:\oracle\product\10.2. ...
随机推荐
- MyEclipse web项目连接数据库
1.Build path添加jdbc驱动包 2.编写驱动类 import java.sql.Connection; import java.sql.DriverManager; import java ...
- 如何手动合并ts视频文件
手动合并ts视频文件一不需要编程,二不需要下载什么特殊软件,用一些最普通的软件即可. 工具: 1.Chrome浏览器 2.迅雷 3.CMD命令行工具 步骤 一.打开迅雷,先确保没有别的在下载. 二.播 ...
- flutter vscode 安卓打包apk文件
配置 VSCode默认是没有使用密钥签名的,往往我们在正式项目中是需要签名的.那就创建好了...所以需要自己创建并使用密钥签名 步骤一 创建密钥库 执行以下命令: keytool -genkey -v ...
- Oracle数据库正则表达式
正则表达式: 无论是在前端还是后台正则表达式都是一个至关重要的知识点,例如判断一个手机号码输入是否正确,如果使用Java.C或者其他语言进行字符串进行判断,也许写几十行代码都不一定能解决,而且漏洞百出 ...
- 记一次奇怪的cookie丢失
.net给Image控件设置一个空图片路径的时候出现丢失cookie 比如说, img_path.ImageUrl ="../"+ ds.Tables[0].Rows[0][&q ...
- java输出1-100之间的数并求和for+while+do while实现
public static void main(String args[]) {//do while int sum = 0; //当前之和 int i = 1; //加数 do { if (i%2= ...
- 超详细!盘点Python中字符串的常用操作
在Python中字符串的表达方式有四种 一对单引号 一对双引号 一对三个单引号 一对三个双引号 a = 'abc' b= "abc" c = '''abc''' d = " ...
- Docker镜像下载很慢,各种加速无效
mcr.microsoft.com/dotnet/...... 改成: dockerhub.azk8s.cn/dotnet/...... 或 mcr.azk8s.cn/dotnet/......
- [LeetCode]面试题67. 把字符串转换成整数
题目 写一个函数 StrToInt,实现把字符串转换成整数这个功能.不能使用 atoi 或者其他类似的库函数. 首先,该函数会根据需要丢弃无用的开头空格字符,直到寻找到第一个非空格的字符为止. 当我们 ...
- js 去掉字符串最后一个逗号:笑死我了
今天突然遇到js 去掉字符串最后一个逗号的问题,本想偷懒搜个代码吧,没想到看到百度的第一条记录是这么一篇文章. 网易博客: http://blog.163.com/li_crane/blog/stat ...