• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Maven & JDK Versions

 
Ranch Hand
Posts: 179
13
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I'm developing an application to be used by a group of users within my company. The company have yet to certify JDK 8 onwards but JRE 8 onwards is fine and all company PCs have this latest JRE installed. The application I'm building is currently a Maven Project and whenever I run a clean install and create a Fat JAR I need to use my own locally installed verison of JDK 8 to ensure the JAR is created - otherwise the build process fails with the message "No compiler is provided."

Does this mean that my application won't run on machines that don't have JDK 8? If I create a Fat JAR with a JDK 8 dependecy and distribute it to machines that don't have a JDK installed what will be the result?

Thanks

 
Simon Ritchie
Ranch Hand
Posts: 179
13
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I should add some further information:

The reason I ask is that the application I'm developing uses a GUI built with JavaFX. JavaFX (as far as I'm aware) needs Java V8 to run. In Eclipse all of my classes compile and run fine. But when I run a Maven clean install I get a stack of compilation errors all indicating that the Maven compiler doesn't recognise JavaFX. So I'm not sure what's happening here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!