Cannot override Java Jdk to 11
roald
HOBBYOP

a year ago

Recently added changes to my dropwizard service , the build fails and i noticed that railway is trying to use jdk 19.0.2 whereas i need 11.0.25. I tried adding NIXPACKSJDKVERSION variable , also with nixpacks.toml file but same result :

10 21.75 An exception has occurred in the compiler (19.0.2). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.

Solved

17 Replies

roald
HOBBYOP

a year ago

cd657946-d479-452a-82fb-6b703d586a80


a year ago

you'd likely want to use a Dockerfile to get specific versions


roald
HOBBYOP

a year ago

ok checking


roald
HOBBYOP

a year ago

same result


roald
HOBBYOP

a year ago

it looks strange bcs i have 2 other env with the same service and they build fine


a year ago

you want to use a Dockerfile that uses java 11


roald
HOBBYOP

a year ago

yes


a year ago

are you?


roald
HOBBYOP

a year ago


a year ago

and it's still complaining about not using java 11


roald
HOBBYOP

a year ago

yes , build still fails


roald
HOBBYOP

a year ago

Solved


roald
HOBBYOP

a year ago

Unrelated question.
Is there a way to run db migration in railway ? . Flyway for ex


a year ago

what is the command to run the migration


roald
HOBBYOP

a year ago

flyway migrate


a year ago

just run that command as part of the start command then


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...