想修改一下pycharm的启动背景,按照网上的办法直接修改pycharm.jar
pycharm的启动图片放在
pycharm安装目录\lib
文件夹下的pycharm.jar
文件中
直接右键用压缩软件打开.jar文件,里面的pycharm_logo.png和pycharm_logo@2x.png两个图片文件就是启动图,分辨率分别是640×400和1280×800,将你制作的启动图(尽量不要改变分辨率)拖进压缩包替换他们即可.
https://blog.csdn.net/qq_42800654/article/details/104159493
启动的时候直接蹦了,报下面的错误,刚开始是以为图片问题,尝试修改成同样的位数,发现依然没解决。
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors com.intellij.ide.plugins.StartupAbortedException: Cannot start app at com.intellij.idea.StartupUtil.lambda$start$17(StartupUtil.java:290) at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:986) at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:970) at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1705) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) Caused by: java.lang.NoClassDefFoundError: com/intellij/ide/m/X/wh at java.base/java.lang.ClassLoader.defineClass2(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1109) at com.intellij.util.lang.UrlClassLoader.consumeClassData(UrlClassLoader.java:290) at com.intellij.util.lang.ZipResourceFile.findClass(ZipResourceFile.java:116) at com.intellij.util.lang.JarLoader.findClass(JarLoader.java:55) at com.intellij.util.lang.ClassPath.findClassInLoader(ClassPath.java:217) at com.intellij.util.lang.ClassPath.findClass(ClassPath.java:176) at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:223) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at com.intellij.idea.MainImpl.i(MainImpl.java:146) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.intellij.idea.MainImpl.start(MainImpl.java:66) at com.intellij.idea.StartupUtil.lambda$start$16(StartupUtil.java:286) at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072) ... 8 more Caused by: java.lang.ClassNotFoundException: com.intellij.ide.m.X.wh at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:229) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 26 more
并且修改之后的文件大小变化非常大,解压文件会提示是否覆盖文件。这就tm很神奇,直到深入文件找到缺失的类才发现,类名是一样的,大小写不一样。
而由于windows系统文件名不缺分大小写,解压的时候就直接覆盖了,导致重新压缩的文件会缺失类,即使是网zip文件里直接拖放也会导致文件缺失。要解决这个问题就只能换linux系统了,进入ubuntu解压,替换文件,压缩,顺利解决问题。
最后传一下不带水印的启动图,喜欢的可以直接拿走。
版本信息:
修改后的jar文件下载:
名称: pycharm.jar
大小: 17294996 字节 (16 MiB)
CRC32: A1A58D99
CRC64: EE2DD489172539F1
SHA256: 79fbe1e5f4d84998157632ae74f15605d582674d3c2c7f93a45de7e953e066bc
SHA1: 5b8cd96481b3a14df786cfbcee01500ec9b10316
BLAKE2sp: a731450daa74d2dfc03f7e8987ccaa1f93f1efc2fe4016be63deae188a53c415