• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Maven & JDK Versions

 
Ranch Hand
Posts: 193
14
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 193
14
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic