Pycharm doesn't open
Followed by 8 people
Hi all,
I have uninstalled Pycharm and installed it again. Now pycharm does not open at all. I dont even see any task starting in task manager. Here is my idea.log:
2020-03-24 12:29:21,544 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2020-03-24 12:29:21,610 [ 66] ERROR - llij.ide.plugins.PluginManager - Could not initialize class java.awt.Color
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Color
at com.intellij.openapi.application.impl.ApplicationInfoImpl.<init>(ApplicationInfoImpl.java:70)
at com.intellij.openapi.application.impl.ApplicationInfoImpl.getShadowInstance(ApplicationInfoImpl.java:629)
at com.intellij.idea.StartupUtil.showUserAgreementAndConsentsIfNeeded(StartupUtil.java:661)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:231)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:213)
at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:45)
at java.base/java.lang.Thread.run(Thread.java:834)
2020-03-24 12:29:21,627 [ 83] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
2020-03-24 12:29:21,740 [ 196] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 164 ms
2020-03-24 12:29:21,981 [ 437] INFO - org.jetbrains.io.BuiltInServer - web server stopped
I see the error is caused by class java.awt.Color but I dont know how to deal with it. Anyone could help?
Please sign in to leave a comment.
Hi,
Make sure you run it on JetBrains Runtime 11. See the tutorial on how to switch JDK https://intellij-support.jetbrains.com/hc/articles/206544879
I can not run IDE, so I can not choose runtime using this plugin :(
The article describes how to do it manually without starting IDE.
Sorry ive missed that. However this description is close to black magic for me. Here what's i managed to do:
cmd -> curl -L "https://bintray.com/jetbrains/intellij-jbr/jbrsdk11-windows-x64" -o jdk - no idea how curl works. There was only that command, not download link or file.
Ive also created system env variable JAVA_HOME and pointed it to JDK installed folder.
Deleted tmp folder befor run PyCharm.
Still PyCharm doesn't open :(
Try reinstalling it from scratch. Make sure to remove all the directories used by PyCharm before installing https://www.jetbrains.com/help/pycharm/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html
Has it helped?
Have same issue. I have already tried to uninstall PyCharm, remove <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.<PRODUCT><VERSION> (both .PyCharmCE2019.2 and .PyCharmCE2019.3) and install PyCharm 2019 3.4. Still cant launch PyCharm with pycharm64.exe, but pycharm.bat launch it properly (but that cmd window is annoying :/). Any chances to fix? This issue could be related with RDP connection or with Jenkins slave?
@Bromaaga
Please report it to https://youtrack.jetbrains.com/issues/IDEA providing your idea.log file from Help | Show Log in...
We'll investigate.
Reported at https://youtrack.jetbrains.com/issue/IDEA-236262.
Thanks!
Sorry but I was offline whole weekend. Here is a list things I tried:
- reinstalling everything from scratch, including the removal folders Sergey mentioned (https://www.jetbrains.com/help/pycharm/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html).I tried with three community versions: 2019.3.3, 2019.2.6, 2019.3.7
- deleting folders <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.<PRODUCT><VERSION>
- I've also tried to change JetBrains Runtime 11 but without success
Nothing helped me :(
Please run using pycharm.bat and follow YouTrack issue for updates.
I would also check if reinstalling and running while antivirus is disabled helps.
It worked but found some errors in cmd:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020-03-30 09:52:01,870 [ 49584] WARN - gnostic.WindowsDefenderChecker - wmic Windows Defender check failed
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "wmic": CreateProcess error=2, The system cannot find the file specified
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:424)
at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:75)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:41)
at com.intellij.execution.process.CapturingProcessHandler.<init>(CapturingProcessHandler.java:24)
at com.intellij.execution.util.ExecUtil.execAndGetOutput(ExecUtil.kt:85)
at com.intellij.diagnostic.WindowsDefenderChecker.isWindowsDefenderActive(WindowsDefenderChecker.java:96)
at com.intellij.diagnostic.WindowsDefenderChecker.checkWindowsDefender(WindowsDefenderChecker.java:70)
at com.intellij.diagnostic.WindowsDefenderCheckerActivity.runActivity(WindowsDefenderCheckerActivity.kt:28)
at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$null$4(StartupManagerImpl.java:438)
at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$runUnderDisposeAwareIndicator$11(BackgroundTaskUtil.java:243)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:179)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:150)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:179)
at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:263)
at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:242)
at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$scheduleBackgroundPostStartupActivities$5(StartupManagerImpl.java:430)
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:217)
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.io.IOException: Cannot run program "wmic": CreateProcess error=2, The system cannot find the file specified
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:455)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:420)
... 25 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:478)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:154)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
... 28 more
It's a warning that is unrelated and is safe to ignore.
ok, thank you :)
Hey, Is it possible that you installed the Pycharm in the wrong way ?I have installed Pycharm and there were many options should be done.When I just finished installing it,it is not finished well because I have to install the interpreter on http//www.python.org too.Then I have to find the interpreter in my Pycharm IDE so I can use it successfully.😀
Hi! I've got the same issue after using visual studio uninstaller. Nothing was helpful until I installed Visual C++ redistributable packages (https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads). Now it works again!
Reinstalling Visual C++ redistributable worked for me!!
thank you Erop!!!
Same. A little time before I've faced issue I did mannually uninstalled Visual C++.
@Erop
It is really helpful for me :)
Thank you so much!!
I had the same issue today and only Reinstalling Visual C++ redistributable helps ! thanks guys.
I'm big fan of jetbrains products but this is very very inconvenient - jetbrains should do better than that !