• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Heroku java version selection not working

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.
A "dutch baby" is not a baby. But this tiny ad is baby sized:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic