Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-4122: Switching to JDK 21

Ryan Kurtz966e6fddf3e7
diff --git a/Ghidra/application.properties b/Ghidra/application.properties
index 4f8b5f2ee4..49cdcca99b 100644
--- a/Ghidra/application.properties
+++ b/Ghidra/application.properties
@@ -2,8 +2,8 @@ application.name=Ghidra
application.version=11.2
application.release.name=DEV
application.layout.version=2
-application.gradle.min=7.3
+application.gradle.min=8.5
application.gradle.max=
-application.java.min=17
+application.java.min=21
application.java.max=
-application.java.compiler=17
+application.java.compiler=21
diff --git a/GhidraDocs/InstallationGuide.html b/GhidraDocs/InstallationGuide.html
index 22bcd35509..eb44b8b3f1 100644
--- a/GhidraDocs/InstallationGuide.html
+++ b/GhidraDocs/InstallationGuide.html
@@ -19,7 +19,7 @@
<h1>Ghidra Installation Guide</h1>
<p>
-The installation information provided is effective as of Ghidra 11.1 and is subject to change with
+The installation information provided is effective as of Ghidra 11.2 and is subject to change with
future releases.
</p>
@@ -84,16 +84,16 @@ Ghidra team if you have a specific need.</p></blockquote>
</ul>
<h3>Software</h3>
<ul>
- <li>Java 17 64-bit Runtime and Development Kit (JDK) (see <a href="#JavaNotes">Java Notes</a>)</li>
+ <li>Java 21 64-bit Runtime and Development Kit (JDK) (see <a href="#JavaNotes">Java Notes</a>)</li>
<ul>
- <li>Free long term support (LTS) versions of JDK 17 are provided by:</li>
+ <li>Free long term support (LTS) versions of JDK 21 are provided by:</li>
<ul>
<li>
<a href="https://adoptium.net/temurin/releases">
Adoptium Temurin</a>
</li>
<li>
- <a href="https://docs.aws.amazon.com/corretto/latest/corretto-17-ug/downloads-list.html">
+ <a href="https://docs.aws.amazon.com/corretto/latest/corretto-21-ug/downloads-list.html">
Amazon Corretto</a>
</li>
</ul>
@@ -335,7 +335,7 @@ In order to build native binaries for your platform, you will need the following
system:</p>
<ul>
<li>A <a href="#Requirements">supported</a> version of a Java Development Kit</li>
- <li><a href="https://gradle.org/releases/">Gradle 7.3+</a></li>
+ <li><a href="https://gradle.org/releases/">Gradle 8.5+</a></li>
<li>Software C/C++ build tools and library packages</li>
<ul>
<li>macOS: <I>Xcode</I> or the abbreviated <I>Command Line Tools for Xcode</I> will supply the
diff --git a/README.md b/README.md
index e45f876324..fc66d12629 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ of how you might be impacted.
## Install
To install an official pre-built multi-platform Ghidra release:
-* Install [JDK 17 64-bit][jdk17]
+* Install [JDK 21 64-bit][jdk]
* Download a Ghidra [release file][releases]
- **NOTE:** The official multi-platform release file is named
`ghidra_<version>_<release>_<date>.zip` which can be found under the "Assets" drop-down.
@@ -46,8 +46,8 @@ directory.
To create the latest development build for your platform from this source repository:
##### Install build tools:
-* [JDK 17 64-bit][jdk17]
-* [Gradle 7.3+][gradle]
+* [JDK 21 64-bit][jdk]
+* [Gradle 8.5+][gradle]
* [Python3][python3] (version 3.7 to 3.12) with bundled pip
* make, gcc, and g++ (Linux/macOS-only)
* [Microsoft Visual Studio][vs] 2017+ or [Microsoft C++ Build Tools][vcbuildtools] with the
@@ -127,7 +127,7 @@ source project.
[known-issues]: DevGuide.md#known-issues
[career]: https://www.intelligencecareers.gov/nsa
[releases]: https://github.com/NationalSecurityAgency/ghidra/releases
-[jdk17]: https://adoptium.net/temurin/releases
+[jdk]: https://adoptium.net/temurin/releases
[gradle]: https://gradle.org/releases/
[python3]: https://www.python.org/downloads/
[vs]: https://visualstudio.microsoft.com/vs/community/
diff --git a/build.gradle b/build.gradle
index 75a2acf404..6af4593b1c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -21,9 +21,10 @@ apply from: "gradle/support/loadApplicationProperties.gradle"
/***************************************************************************************
-* Print current Gradle version and make sure the correct version of gradle is being used
+* Print current Java and Gradle version and make sure the correct version of gradle is being used
***************************************************************************************/
import org.gradle.util.GradleVersion;
+println "Java: " + JavaVersion.current()
println "Gradle: " + GradleVersion.current().version
checkGradleVersion()