AndHow! Java Configuration .
  • AndHow!
  • Live-Code Quickstart
  • Simple Usage Examples
  • User Guide
    • Key Concepts
    • AndHow Properties
    • Loaders & Load Order
    • Testing
    • AndHow Initialization
    • Configuring AndHow
    • Whitespace Handling
    • Integration and Exports
    • Changing the Load Order
    • Java9 and Above
    • Best Practices
  • Developer Guide
    • How to Contribute
    • First Checkout with Git
    • Project Branching Structure
    • New Workstation Setup
    • Background
    • Framework Testing
    • Conventions
    • Release Plan
    • HowTo Release
    • Troubleshooting
    • References
  • Help / Questions
  • Release Notes
    • Release 0.4.2
  • FAQs
  • Other
    • JUnit Extension Registration
Powered by GitBook
On this page
  • The good news: AndHow works on JDK 8 - 16
  • The bad news: It doesn't work with Java9 modules
  • But... Why modules?

Was this helpful?

  1. User Guide

Java9 and Above

AndHow works for applications built and/or running on Java 9 and up, but there are considerations.

The good news: AndHow works on JDK 8 - 16

If you don't use modules (i.e. don't include a module-info.java file in your jars), AndHow works just fine. And this seems to be what most projects and libraries have done: simply ignore the module system.

The bad news: It doesn't work with Java9 modules

If you really need Java 9 modules, it will be some time and work before AndHow can support them. If module support is important to you, please comment on this ticket. If you are a module expert, please consider offering to help with that ticket.

But... Why modules?

Applications, especially those that runs as lambdas, micro-services or within containers, live in a very walled garden. The extra level of ceremony that Jigsaw modules provides (essentially protecting your code from itself and the dependencies you choose to use) doesn't add meaningful security in most cases.

PreviousChanging the Load OrderNextBest Practices

Last updated 3 years ago

Was this helpful?