Won't let me use Java 8 or higher?
I am currently using Java with railway, and I keep running into this frustrating error when it comes to deploying. The program will begin to deploy, a Nixpacks messages will show up telling me I am running Java 17, Maven dependencies will download. Then after a bit, I will get a compilation error stating
lambda expressions are not supported in -source 7 (use -source 8 or higher to enable lambda expressions)
This is strange because it previously told me that I was using Java 17. I have idea how it make it do -source 8
instead of -source 7
, because I can't find it anyhwere. Any help would be greatly appreciated3 Replies