# Is java-jwt compatible with Java21?

**URL:** <https://community.auth0.com/t/is-java-jwt-compatible-with-java21/142144>\
**Category:** JWT.io\
**Tags:** jwt, java, auth0\
**Created:** [August 30, 2024, 4:37am UTC](https://community.auth0.com/t/is-java-jwt-compatible-with-java21/142144 "2024-08-30T04:37:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rikkyrice](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rikkyrice/32/59522_2.png) [@rikkyrice](https://community.auth0.com/u/rikkyrice)\
**Post date:** [August 30, 2024, 4:37am UTC](https://community.auth0.com/t/is-java-jwt-compatible-with-java21/142144/1 "2024-08-30T04:37:53Z")

</div>

Hi everyone,

I am using the `java-jwt` library in my project, which currently runs on Java 8. I am planning to migrate from Java 8 to Java 21 and am investigating compatible versions of each library for Java 21.

I found that the latest version of `java-jwt` (4.4.0 as of August 2024) is compatible with Java 8, 11, and 17, but there is no mention of support for Java 21.

Could someone confirm whether `java-jwt` version 4.4.0 supports Java 21?

This is my first time upgrading the Java version, so any assistance would be greatly appreciated.

Thank you!

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [August 31, 2024, 1:23am UTC](https://community.auth0.com/t/is-java-jwt-compatible-with-java21/142144/3 "2024-08-31T01:23:44Z")

</div>

Hi @rikkyrice

Welcome to the Auth0 Community!

It would be best if you could open an issue in the [Java-JWT GitHub repository](https://github.com/auth0/java-jwt/issues) and share the link to the issue here. I will ping the repo owner.

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![rikkyrice](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rikkyrice/32/59522_2.png) [@rikkyrice](https://community.auth0.com/u/rikkyrice)\
**Post date:** [September 2, 2024, 1:01am UTC](https://community.auth0.com/t/is-java-jwt-compatible-with-java21/142144/4 "2024-09-02T01:01:09Z")

</div>

Thank you for a reply.  
I opened an [issue](https://github.com/auth0/java-jwt/issues/690) related to this question.

Thank you!

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [September 5, 2024, 3:37pm UTC](https://community.auth0.com/t/is-java-jwt-compatible-with-java21/142144/5 "2024-09-05T15:37:08Z")

</div>

Hi @rikkyrice and other community folks!

Our Engineering team doesn’t see any reason why the Java-JWT library wouldn’t be compatible with Java 21. We’ll work on updating our CI to run tests on all Java LTS versions.

> <https://github.com/auth0/java-jwt/issues/690#issuecomment-2332012917>
>
> \### Checklist
> 
> \- \[X\] I have looked into the \[Readme\](https://github.com/auth0/ja…va-jwt#readme) and \[Examples\](https://github.com/auth0/java-jwt/blob/master/EXAMPLES.md), and have not found a suitable solution or answer.
> \- \[X\] I have looked into the \[API documentation\](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html) and have not found a suitable solution or answer.
> \- \[X\] I have searched the \[issues\](https://github.com/auth0/java-jwt/issues) and have not found a suitable solution or answer.
> \- \[X\] I have searched the \[Auth0 Community\](https://community.auth0.com) forums and have not found a suitable solution or answer.
> \- \[X\] I agree to the terms within the \[Auth0 Code of Conduct\](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
> 
> \### Description
> 
> Hi.
> 
> I am using the java-jwt library in my project, which currently runs on Java 8. I am planning to migrate from Java 8 to Java 21 and am investigating compatible versions of each library for Java 21.
> 
> I found that the latest version of java-jwt (4.4.0 as of August 2024) is compatible with Java 8, 11, and 17, but there is no mention of support for Java 21.
> 
> Could you confirm whether java-jwt version 4.4.0 supports Java 21?
> 
> I posted same question on Auth0 Community forums.
> The link is \[here\](https://community.auth0.com/t/is-java-jwt-compatible-with-java21/142144).
> 
> Thank you.
> 
> \### Reproduction
> 
> This is just a question, so there is no reproduction.
> 
> \### Additional context
> 
> \_No response\_
> 
> \### java-jwt version
> 
> 4.4.0
> 
> \### Java version
> 
> 21

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 19, 2024, 3:37pm UTC](https://community.auth0.com/t/is-java-jwt-compatible-with-java21/142144/6 "2024-09-19T15:37:41Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
