Skip to content

Commit

Permalink
feat: require Java 21 (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
magnus-madsen authored Dec 28, 2023
1 parent 08ae605 commit e0bb2c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Alternative (for advanced users):

## Requirements

- Requires Java 11 (or later).
- Requires Java 21 (or later).
- Ensure that the `java` command is on your path.

## For Developers
Expand Down
2 changes: 1 addition & 1 deletion server/src/engine/flix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export async function start(input: StartEngineInput) {
return
}

if (majorVersion! < 11) {
if (majorVersion! < 21) {
sendNotification(jobs.Request.internalError, {
message: USER_MESSAGE.JAVA_WRONG_VERSION(versionString),
actions: [],
Expand Down
2 changes: 1 addition & 1 deletion server/src/util/userMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class USER_MESSAGE {
}

static JAVA_WRONG_VERSION(foundVersion: string) {
return `Flix requires Java 11 or later. Found "${foundVersion}".`
return `Flix requires Java 21 or later. Found "${foundVersion}".`
}

static RESPONSE_TIMEOUT(timeoutTime: number) {
Expand Down

0 comments on commit e0bb2c7

Please sign in to comment.