Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Maven & JDK Versions

 
Ranch Hand
Posts: 180
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: 180
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.
 
Won't you be my neighbor? - Fred Rogers. tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic