[GH-ISSUE #292] DPS - 3 - Make DPS jar compatible with jre 8 #108

Closed
opened 2026-02-26 04:34:04 +03:00 by kerem · 3 comments
Owner

Originally created by @mageddo on GitHub (Feb 20, 2023).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/292

What is expected

Make DPS jar run in jre 8

What is Happening

Actually compatible with jre 17

Changes (Optional)

Research

  • jabel make it possible compile java 17 code into jre 8 target but won't support jdk9+ new methods or classes like Set.of() and go on
  • UniJ has the proposal to implement jdk 9+ classes for jdk 8, the project is out of date and you need to use the prefix Uni for each class you use, like UniList.of()
  • refaster maybe can fix unij limitation by merging the new implementations to List and go on
  • here a discussion on jabel github about that but no proposal to merge all this stuff into a new tool
  • Another impeditive to use jre 8 is that DPS need java 16 support for unix sockets to be fully compatible with docker, need to find a lib replacement for that, docker-java library have a lot of incompatible stuff with native image, old jres and so on though, maybe think in a better replacement for docker java
Originally created by @mageddo on GitHub (Feb 20, 2023). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/292 ### What is expected Make DPS jar run in jre 8 ### What is Happening Actually compatible with jre 17 ### Changes (Optional) * Initial work using jabel is done at [this branch][5] ## Research * [jabel][1] make it possible compile java 17 code into jre 8 target but won't support jdk9+ new methods or classes like Set.of() and go on * [UniJ][2] has the proposal to implement jdk 9+ classes for jdk 8, the project is out of date and you need to use the prefix `Uni` for each class you use, like `UniList.of()` * [refaster][3] maybe can fix unij limitation by merging the new implementations to List and go on * [here][4] a discussion on jabel github about that but no proposal to merge all this stuff into a new tool * Another impeditive to use jre 8 is that DPS need java 16 support for unix sockets to be fully compatible with docker, need to find a lib replacement for that, docker-java library have a lot of incompatible stuff with native image, old jres and so on though, maybe think in a better replacement for docker java [1]: https://github.com/bsideup/jabel [2]: https://github.com/tlinkowski/UniJ [3]: https://errorprone.info/docs/refaster [4]: https://github.com/bsideup/jabel/issues/3 [5]: https://github.com/mageddo/dns-proxy-server/compare/jre-8?expand=1
kerem 2026-02-26 04:34:04 +03:00
Author
Owner

@mageddo commented on GitHub (Feb 22, 2023):

we are considerably far to achieve this feature, better people try to use the binary releases or just download jre 17+ and use the jar

<!-- gh-comment-id:1440254241 --> @mageddo commented on GitHub (Feb 22, 2023): we are considerably far to achieve this feature, better people try to use the binary releases or just download jre 17+ and use the jar
Author
Owner

@mageddo commented on GitHub (Feb 25, 2023):

I think it won't be possible, best choice is to tryout the native image binaries we have, and on the future also provide a Windows binary. As a fallback run the jar which requires jre 17+

<!-- gh-comment-id:1445186320 --> @mageddo commented on GitHub (Feb 25, 2023): I think it won't be possible, best choice is to tryout the native image binaries we have, and on the future also provide a Windows binary. As a fallback run the jar which requires jre 17+
Author
Owner

@mageddo commented on GitHub (Feb 25, 2023):

See https://github.com/mageddo/dns-proxy-server/issues/306 for windows binary release support

<!-- gh-comment-id:1445186387 --> @mageddo commented on GitHub (Feb 25, 2023): See https://github.com/mageddo/dns-proxy-server/issues/306 for windows binary release support
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#108
No description provided.