question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade to Java 17 source and target compatibility

See original GitHub issue

The next version of Ghidra should take advantage of the Java language features found in the latest LTS version: JDK 17.

The minimum supported version of Java should be upped to JDK 17.0.3, due to compiler bugs and security issues found in prior versions of JDK 17.

The current master branch c6cb8a0d85648c2f8d9a5a0f8cf2815c14e53520, which uses Java 11 source and target compatibility, is known to be compatible with JDK 17.0.3 for compilation and runtime with these settings, so users wishing to prepare their environments with JDK 17.0.3+ should be safe to do so.

NOTE: The minimum supported version of Gradle will need to be upped to Gradle 7.3.

Java code changes to support this are minimal and have already been implemented in 1996cdacd1d1bd7442c97cf694b6f27efb2b4fdb. The only remaining task (aside from documentation) should be to flip some version numbers in application.properties: https://github.com/NationalSecurityAgency/ghidra/blob/c6cb8a0d85648c2f8d9a5a0f8cf2815c14e53520/Ghidra/application.properties#L5-L8

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Wall-AFcommented, Jun 13, 2022

'Tworks!

0reactions
mumbelcommented, Jul 22, 2022

Nice! (20.04, openjdk 17.0.3, gradle 7.4.2)

I did run into eclipse hating life and trying to use an old gradle. Removed these two files (was just searching the gradle version string)

.gradle/buildOutputCleanup/cache.properties
gradle/wrapper/gradle-wrapper.properties
Read more comments on GitHub >

github_iconTop Results From Across the Web

It's time to move your applications to Java 17. Here's why ...
This article explains why you should upgrade your application and helps you with the actual upgrade to Java 17.
Read more >
Why and How to Upgrade to Java 16 or 17 - InfoQ
It's possible to upgrade from Java 8 to 17 at once. However, if you encounter any issues, it might be difficult to determine...
Read more >
Getting Started With Java 17 | Simply-How.com
Key changes from JDK 11 to JDK 17 and how Gradle, Maven, IntelliJ IDEA and Eclipse support Java 17.
Read more >
Gradle: sourceCompatiblity vs targetCompatibility - Baeldung
In this article, we'll look at the difference between sourceCompatbility and targetCompatibility Java configurations as well as their usage ...
Read more >
Compatibility Matrix - Gradle User Manual
A Java version between 8 and 19 is required to execute Gradle. ... 17. 7.3 ... Gradle plugins written in Kotlin target Kotlin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found