Java 集锦

JDK

  • https://adoptium.net/marketplace/

Microsoft Build of OpenJDK™

  1. OpenJDK 17.0.6
    1. 15e8f5dbb57288d316993e793f8965d624ff5e58dfb5c5a7db1ef8ebff68bc49 microsoft-jdk-17.0.6-windows-x64.zip
    2. 2b5226ee79d3c31121f10bcc799abc27df8d1104b7e3c2ee3774138bfe07dbb1 microsoft-jdk-debugsymbols-17.0.6-windows-x64.zip
  2. 一个奇怪的 BUG,Execution failed for task ':debugger:instrumentCode' >%JAVA_HOME%\Packages does not exist,解决方法,创建它。

Java Tools

  1. javap 查看 inner class, javap -c -p -v me.lu.A.Barjavap -c -p -v me/lu/A.Bar
  2. Access to Parameter Names at Runtime
    1. javac -parameters, Executable.getParameters(), MethodParameters
    2. javac -g, ASM, LocalVariableTable

JVM

  1. JVM 版本信息java -Xinternalversion 
  2. VM Options Explorer - <https://chriswhocodes.com/vm-options-explorer.html>
    1. java -XX:+PrintCommandLineFlags  - Print flags specified on command line or set by ergonomics
    2. java -XX:+PrintFlagsFinal             - Print all VM flags
  3. System.getProperties() - <javadoc>

Debug

  1. Debugging Gradle internals from IntelliJ IDEA - Damir Murat
  2. How to Debug Your Own IntelliJ IDEA Instance - Vladimír Oraný
  3. Gradle -Dorg.gradle.debug=true

Build Tool

Gradle

  1. Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
    1. The JavaExec.main property has been deprecated 
      • plugins/gradle/java/src/execution/build/GradleApplicationEnvironmentProvider.kt, main = mainClass
posted @ 2023-02-18 12:00  UPeRVv  阅读(52)  评论(0编辑  收藏  举报