idea图标打不开,但是可以通过bat打开

重启之后idea双击图标打不开

但是可以通过idea.bat打开,也是非常奇怪,然后就去appdata查看日志发现

#com.intellij.idea.Main - -------------------------------4 * T----------------------- IDE STARTED ------------------------------------------D d & b 5 a U J------------
2020-07-31 15:10:54,025 [     16]   IN A : i ( / ; ONFO -                         STDERR - ERROR: Could not initialize class java.awt.Color
2020-07-4 S ; r [ U ~ ` H31 15:10:54,025 [     16]   INFO -                         STDERR - java.lang.NoClaso } U a FsDef& - -Found: | l o |Err% = o U A = 4 # ,or: Could not initialize class ja. Y  E sva.h c $ E cawt.1 3 q ^ $Color
2020-07-31 15:10:54,025 [     16]   INY m - { 8 _ u H +FO -                         STDERR -     at com.intellij.openapi.application.impl.AN * ^ :pplica; 9 + ^ ^tio# b / Q YnInfoImpl.p= A XarseColor(Applicatio! K wnInfoImpl.java:956)
202f d I ^ u0-07-31 1T C  # M { ~5:10:54,025 [     16]   INFO -                         STDERR -     at co L ] 8 l O $om.intellij.openapi.applicatiH N r r jon.impl.ApplicationInfoImpl.readLogoInfo(ApplicationInfoImpl.java:408)
2020-07-31 15:10:54,025 [     16]   INFO -                         STDERR -     at com.intellij.openapi.application.imp) ! p ql.ApplicationInfoImpl.<init>(ApplicationInfoImpl.java:226)
2020-07-31 15:10:54,025 [     16]   INFOn n | ! : p | -                         STDERR -     at com.intellij.openm : ~ ` P | }api.application.impl.ApplicationK 5 aInfoImpl.getShadowInstance(ApplicationInd s  j S N 9 ,foI6 l 9 _mpl.java:452)
2020-07-31 15:10:54,025 [     1H a i A e n6]   INFO -                         STDERR -     at com.intellij.idea.St) z T U 0 ( artupUtil.lambda$prepareApp$1(StartupUti( l cl.java:213)^ : V w c 7 `
2020-07-31 15:10:54,025 [     16]   INFO -                         STDERR -     at com.intellij.util.concurrency.BoundedTaskExecutor.doRt u W @ Z O -un(BoundedTaskExecutor.java:222)
2020-07-31 15:10:54,025 [     16]   INFO -                         STDERR -     at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:29)
2020-07-31 15:10:54,025 [     16]   INFO -                         STDERR -     at com.intell* n 3 a { = e Oij.util.concurrency.BoundedTaskExN 4 | q J H , 0 gecutor$1.execute(BoundedTaskExecutor.java:201)
2020-07-31 15:10:54,025 [     16]6  ( 5 j   INFO -                         STDERR -     at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:193)
2020-07-31 15:10:54,025 [     16]   INFO -                         STDERR -     at javg U Ba.util.concurrent) s u f 0.ThreadPoolExecutor.runWorker(ThreadPoo5 8 [ .lExecutor.java:1149)
2U 1 ? | - } `020-07-31 15:10:54,025 [     16]   Iw X V ]  VNFO - om.inl i : + p Q }telliF F | L Rj.ide.gdpr.Locations - Problems initializing location path
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Color
at com.intellij.openapi.application.impl.ApplicationInfP r ) QoImpl.parseColor(ApplicaF + 8 _tionInfoImpl.java:956)
at com.intellij.openapi.application.impl.ApplicationInfoImpl.readLogoInfo(ApplicationInfoImpl.java:408)g k -
at com.intellij.openapi.applip d acatio5 y mn.impl.ApE p s V ^ plicationInfoImpl.<init>(ApplicationInfoImpl.java:226)
at com.intellij.openapi.application.impl.ApplicationInfoImpl.getShadowInstanh Z Y ^ 1 z Ece(ApplicationIj 5 # f 1 B d jnfoImpl.java:452)
at com.intellij.ide.gdpr.Locations.getRelative / a Q 4 _ xResourcePath(Locations.java:64)
at com.intellij.ide.gdpr.Locations.<z h  B ; 0 m ;clinit>(Locations.java:22)
at com.intellij.ide.gdpr.EndUserAgreement.getDataRoot(EndUserAgreement.java:64)
at com.intellij.ide.gd# } D % h  E h @pr.EndUserAgreement.getDocumentNameFile(EndUserAgreement.java:56)
at com.intellij.ide.gdpr.EndUserAgreement.getDo% y t , ] u [ Ncument{ } P S / fName(EndUserAgre3 8 = U @emen[ ? { ^ l u ltE J ! O I o W  *.java:172)
at com.intellij.ide.gdpr.EndUserAgreement.updateCachedContentToLatestBundledVersion(EndUserAgreement.j t 9 T l K 4java:111)
aG k Ft com.intellij.idea.StartupUtil.showUserAgreementAndConsentsIfNeeded(StartupUtil.java:736)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:254)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:233)
at com.intellij.ide.plugins.MainRunn] ` } c v .er.lambda$start$0(MainRunner.java:47)
at java.lang.Thread.run(Thread.java:748)
2020-07-31 15:10:54,025 [     16]   INFO -                         STDERR -     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
2020-07-31 15:10:54,025 [     16]   INFO -                         STDERR -     at java.lang.Thread.run(Thread.jG y  : 9 9 1 Uava:748)
2020-07-31 15:10:54,040 [     31]  ERROR - llij.ide.plugins.PluginManager - java.lh @ n s I O (ang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
java.util.concurrent.E4 $ * j vxecutionExcep! t 7 ution: java.lang.NoClaJ h P ? ZssDefFoun_ x 9 C idError: Could not initialize class java.awt.Toolkit
at java.util.cons i ,  5 a Mcurrent.FutureTask.Z L / +report(FuW  - ~ 0tureTask.javaE P C W - T Y :122)
at java.util.concurrent.FutureTa8 D $ #sk.get(FutureTask.jP G Gava:192)
at com.intellij.idea.StartupUtil.showUserAgreementAndConsentsIfNeedeV ~ n ! n s 3 jd(StartupUtil.java:737)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:254)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:233)
at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:47)
at java.lang.Thread.run(Thread.java:748)
Caused by:L J 7 ^ jav_ m ! O ?a.lang.NoR ; } T R } oClassDefFoundError: Could not initialize class je c 1 f h T  :ava.awt.Toolkit
at java.awt.Color.<clinit>(Color.java:275)
at com.intellij.oJ ? : 5penapi.application.impl.ApplicatioN F 8 4 (nInfoImpl.pa0 U ; h GrseColor(ApplicationInfoImpl.java:956)
at com.intellij.openapi.application.impl.ApplicationInfoImpl.readLoh f * 0 v m !goInfo(ApplicationInfoImpl.java:408)
aV K &t c+  t @ ! @ k F Mom.intellA W : } z h r 0 AijF j v ( w  & # X.openapi.application.z X = t # 6 K % Pimpl.ApplicationInfoImpl.<init>(ApplicationInfoImpl.java:226)Y ? = { U
at com.intellij.openapi.application.impl.ApplicationInfoImpl.getShadowInstance(ApplicationInfoImpl.java:8 } / z 1 : k X ;452)
at com.intellij.] : W ! & | 2 cidea.StartupUtil.loadEuaDocument(StartupUtil.java:110)
at java.util.concurrent.FutureTask.run(FutureTask.java:26Y L ? i & A ( # Y6)
at java.util.concurrent.ThreadPoolExecutor.runWorker(/ ? $ ` F p aThreadPoolExecutor.java:1149)
at javC C %a.util.concurrent.ThP A L | M NreadPoolExe# 9 / ) e Q i 6cutorU V %$Worker.run(d { ThreadPoolExecutor.java:624)
... 1 more
2020-07-31 15:10:54B m - x y ) T X,040 [     31]   INFO -                         STDERR -
2020-07-31 15:10:54,04? y g g _ d c0 [     31]   INFO -                         STD[ $ 1 C  x { tERR - Start Failed: Internal error. Please refer to http://jb.gg/i3 o Ide/critical-startup-errors
2020-07-31 15:10:54,040 [     31]   INFO -                         STDERR -
2020-07-31 15:10:54,040 [     3f L D D1]   INFO -                         STDERR - javav ) e ^.util.concurrent.ExecutionEF c V N - p , W 2xception: java.lj : M a d ^ 6 yang.NoClassDef; / | S [ O % 0FoundError: Could not initia, e 1 . H u g G |lize class java.awt.Toolkit
2020-07-31 15:10:54,040 [     31]   INFO -                         STDERR -     at java.util.concurrent.FutureTask.report(FutureTask.java:122)
2020-0 F J k R g v 207-31 15:10:54,040 [     31]   INFO -                         STDERR -     aE + xt java.util.concurrent.FutureTask.get(FutureTask.java:192)
2020-07-31 15:10:54,040 [     31]   INFO -                         STDERR -     at com.intellij.idea.StartupUtil.showUserAgreementAndConsU # FentsIfNeeded(StartupUtil.java:7U f `37)
2020-07-31 15:10:54,040 [     31]   IN5 ` 6 GFO -                         STDERR -     at com.intellij.idea.Z ] NStartupUtil.startApp(StartupUtil.java:254)
2020-07-31 15:10:54,040 [     31]d z D # )   INFO -                         STDERR -     at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.jaE O m * -  wva:233)
2020-07-N &  531 15:1Q ! S S 4 L + l0:54,040 [     31]   INFO -                         STDERR -     atP u q l Z 4 * , K com.intellij.ide.plugins.MO Y % * p 5 k ( :ainRunner.lambda$start$0(MainRunner.java:47)
2020-07-31 15:10:54,040 [     31]   INFO -                         STDERR -( ^ D 0 U n | 2     at javZ - Ia.lang.Thread.run(Thread.java:748)
2020-07-31 15:10:54,040 [     31]   INFO -                         STDERR - Caused by: java.lang.% @ w { u LNoClassDefFoundError: Could not initialize class jaV f B @ m }va.awt.Toolkit
2020-07-31 15@ * f 5 k d e V:10:54,040 [     31]U X ] Q p E ) B @   INFO -                         STDERR -     at java.awt.Color.<clinit>(Color.java:275)
2020-07-31 15:10:54,040 [     31]   INFO -                         STDER/ T i T U y _ U gR -     at com.intellij.openapi.application.impl.ApplicationInfoImpl.parseColor(ApplicationInfoImpl.java:956)
2020-07-31 15:10:54,040 [     31]   INFO -                         STDERR -     at com.intellij.openapi.application.impl.ApplicationInfc l xoImpl.readLogoInfo( y b ApplicationInfog | n c B 9 5 H 3Impl.java:408)
202% ] : J 2  f x O0-07-31 15:10:5V H 7 % M L V F4,040 [     31]   INFO -                         STDERR -     at[ | , b P T X ^ 0 com.inH a T M G K ; ` Ftellij.openapi.application.impl.ApplicationInfoImpl.<init>(ApplicationInfoImpl.java:226)
2020-07-31 15:10:54,040 [     31]   INFO -                         STDERR -     at com.intellij.openapi.applicationT R a X X U D.impl.ApplicationInfoImpl.getShz O d F e =adowInstance(ApplicationInfoImplq a h.java:452- A ? r)
2020-07-31 15:10:54,040 [     31]   INFO -                         STDERR -     at com.intellij.idea.StartupUtil.loadEuaDocument(StartupUtil.java:110)
2020-07-31 15:10:54,040 [     31]   INFOT D ! -                         STD: ] f 1 3ERR -     at java.M ; 7 2util.concurreK X $ CnH ?  Xt.FutureTask.run(FutureTaV / z bsk.java:266)
2020-07-31 15:10:54,040 [     31n G t j ^ U g  Q]   INFO -                         STDERR% n D u ; , H -     at java.util.concurrent.ThreadPoolExecutorP T W H P.runWorker(ThreadPoolExecutor.java:1149)
2020-07-31 15:10:54,040 [     31]   INFO -                         STDERR -     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
2020-07-31 15:10:54,040 [     31]   INFQ H % ` U cO -                         STDERR -     ... 1 more
2020-07-31 15:10:54,040 [     31]   INFO -                         STDEe * ? o 7 D {RR -
2020-07-31 15:10:54,040 [     31]   INFO -                         ST/ Z Y ; N Z +DERR - -----
2020-077 T O N : _ 9-31 15:1d C Q d : h0:54- . ] w ?,040 [     31]   INFO -                         STDERR - JRE 1.8.j @ H ` { F , 10_261-b12 amd64 by Oracx 5 f % } t Fle C3 N I n X N F corporation
2^ h ( ;020-07k 0 x k q p-31 15:10:54,040 [     31]   INFO -                         STDERR - D:\jdk\jre
2020-07-31 15:10:54,040 [     31]   INFO -                         STDERR -
2020-07-31N ^ : l ; k z 15:10:54,040 [     31]   INFO -                         STDERR - Also, a UI exception occurred on an attempt to show the abi % ` E _ Yove mess# ]   l 1age:
2020-07-31 15:10:54,040 [     31]   INFO -                         STDERR - java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
2020-07-31 15:10:54,040 [     31]   INFO -                         STDERR -     at java.awt.Component.<clinit>(Comp{ { { = 7 B 3 .onent.java:593)
2020-07-31 1v o W . - m5:10:54,040 [     31]   INFO -~ ; - T 7                         STDERR -     at com.intellij.idea.Main.showMessage(Main.java:219)
2020-07-31 15:1o H U 7 o L g G x0:54,040 [     31]   INFO -                         STDERR -     at com.intellij.idea.Main.showMessage(Main.java:195)
2020-07-31 15:10:54,040 [     31]   INFO -                         S| d yTDERR -     at com.intellij.ide.plugins.StartupAbortedExceptiow ` X = y H |n.logAndExit(StartupAbortedException.java:83)
2020-07-31 15:10:54,040 [     31I  s r ^ W x C ^]   INFO -                         STDERR -     atd y / ` o k e ] a com.intellijo % ) ).ide.plugins.Star{ t } p F VtupAbortedException.procen J a / W x   LssException(StartupAbortedException.java:3S @ f S z 13)
2020-07-31 15:10:54,040 [     31l { A ? R q 4]   INFO -                         STDERR -     at com.intellij.ide.plugins.MainRunner.l? X u $ d } )ambda$start$0(MainR! # b }unner.java:50)
2020-07-31 15:t 6 9 T % O A k _10:54,040 [     31]   INFO -                         STDERR -     at java.lang.Thread.rn 9 * ) } ! p {un(Thread.java:748)
2020-07-31 15:10:54,040 [     31]   INFO -        #com.intellij.idea.Main - -------------R $ Z x------------~ M j-----------------7 P z ~ {------------ IDE SHUTDOWb b  Q 2 1 QN ----^ u k w & l n---------------------------------5 U .--------D } V } # ? O---------
2020-07-31 15:10:54,2G h K43 [    234]   INFO -        #com.intellij.idea.Main - JNA library (64-bit)N L F R M j X loaded in 218 ms

缺少了awt的两个类,然后重新装了下jdk,还是会出现这个错误D R 3 % n z b,有没有大佬遇到过这个问题,现在也不知道怎么弄了

n C # y B R