Java-Debug
记录Java编程遇到的错误及解决方法
星拱北辰
居其所而众星拱之
展开
-
【Java】JUnit 4.13.2 警告 ‘assertEquals(double, double)‘ is deprecated 的解决方法
本文介绍 JUnit 4.13.2 警告 'assertEquals(double, double)' is deprecated 的解决方法原创 2022-10-02 11:29:39 · 1384 阅读 · 0 评论 -
【Java】从默认包导入类和对象报错的解决方法
本文介绍从默认包导入类和对象报错的解决方法原创 2022-08-13 20:44:24 · 943 阅读 · 0 评论 -
【Java】panel.getGraphics()报错空指针异常的解决方法
本文介绍Swing编程调用panel.getGraphics()报错空指针异常的解决方法原创 2022-08-13 20:30:32 · 760 阅读 · 0 评论 -
【Java】‘OptionalInt.getAsInt()‘ without ‘isPresent()‘ check 的解决方法
本文介绍IDEA警告 'OptionalInt.getAsInt()' without 'isPresent()' check 的解决方法原创 2022-08-05 11:12:10 · 1430 阅读 · 0 评论 -
【Java】不要直接使用引用未判空的对象
不要直接使用引用未判空的对象可以在某种程度上减少NullPointerException的产生原创 2021-03-25 00:41:29 · 528 阅读 · 1 评论 -
【Java】Kryo运行报错:Exception in thread “main“ java.lang.IllegalArgumentException:Class is not registered
处理Kryo运行报错:Exception in thread "main" java.lang.IllegalArgumentException: Class is not registered原创 2020-12-22 01:28:06 · 1573 阅读 · 1 评论 -
【Java】Maven报错 Dependency ‘aspectj:aspectjrt:1.5.4‘ not found 的解决方法
处理Maven报错:Dependency 'aspectj:aspectjrt:1.5.4' not found原创 2020-12-19 23:31:01 · 2721 阅读 · 3 评论 -
【Java】Maven工程目录下ImageIcon读图片失败爆空指针的解决方案
讲讲Maven工程目录下ImageIcon读图片失败爆空指针的解决方案原创 2020-07-23 18:40:00 · 1644 阅读 · 2 评论 -
【Java】CMD编译Java源码遇到\ufeff问题的解决方法
CMD编译Java源码遇到\ufeff问题的解决方法原创 2020-02-29 19:33:24 · 941 阅读 · 0 评论 -
【Java】OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes…… 的解决方法
解决问题:OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes……原创 2019-12-15 13:59:53 · 50719 阅读 · 25 评论 -
【Java】No compiler is provided in this environment. Perhaps you are running on a JRE rather ... 的解决方法
本文介绍 Java 基于 Maven 的 Spring Boot 项目遇到 No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题的解决方法原创 2022-04-20 03:18:53 · 6361 阅读 · 0 评论 -
【Java】java.lang.RuntimeException: ERROR: Unable to find the resource: /META-INF/BenchmarkList 的解决方法
本文介绍 Java 基于 Maven 的 JMH 执行遇到 Exception in thread "main" java.lang.RuntimeException: ERROR: Unable to find the resource: /META-INF/BenchmarkList 问题的解决方法原创 2022-04-25 16:03:35 · 2087 阅读 · 0 评论