Cannot override Java Jdk to 11
roald
HOBBYOP

2 years 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 NIXPACKS_JDK_VERSION 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

2 years ago

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


2 years ago

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


roald
HOBBYOP

2 years ago

ok checking


roald
HOBBYOP

2 years ago

same result


roald
HOBBYOP

2 years ago

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


2 years ago

you want to use a Dockerfile that uses java 11


roald
HOBBYOP

2 years ago

yes


2 years ago

are you?


roald
HOBBYOP

2 years ago


2 years ago

and it's still complaining about not using java 11


roald
HOBBYOP

2 years ago

yes , build still fails


roald
HOBBYOP

2 years ago

Solved


roald
HOBBYOP

2 years ago

Unrelated question.

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


2 years ago

what is the command to run the migration


roald
HOBBYOP

2 years ago

flyway migrate


2 years ago

just run that command as part of the start command then


2 years ago

!s


Status changed to Solved brody over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...