Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Heroku java version selection not working

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to deploy my Spring Boot REST API to Heroku.

My app is java 11, but Heroku is incorrectly installing 1.8 on deploy.

This is how it happens.

I go to the STS terminal / heroku CLI and execute the following command:


It starts running saying:


and then generates a build error at the end.


I tried the following:

1) Pom.xml:


2) Added system.properties file at the root with the following entry:


3) Project > Properties > Java Compiler > Version 11

4) Preferences > Java > Installed JRE's > jdk 11

Still not working. Heroku continues to install 1.8.

When I build the application locally, it does generate the .war file successfully.
 
Yeah, but is it art? What do you think tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic