Simple dotenv-java example using maven.
git clone mvn compilemvn exec:java -Dexec.mainClass="io.github.cdimascio.examples.dotenv.Main"The program outputs the value of the environment var MY_ENV. In this case it's, MY_VALUE
MIT
Note: This example is licensed under MIT. dotenv-java is licensed under Apache 2.0