Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ability to detect installed Java versions for a Platform #350

Open
brianoliver opened this issue Jul 11, 2016 · 0 comments
Open

Comments

@brianoliver
Copy link
Contributor

As a developer, often I'd like to launch Java applications using a specific version of Java. Currently to achieve this I need to specify the JAVA_HOME, but ultimately I'd prefer it if Bedrock could auto-detect (through some mechanism) the installations of Java available and then allow my applications to simply state the version(s) that could be used.

eg: platform.launch(JavaApplication.class, JavaVersion.of("1.8"));

One possible approach is to allow the definition of these using some property file, like the Maven Tool Chain, eg: a ~/.bedrock-settings.xml, or alternatively, attempt to use the Maven Tool Chain (when detected / available or using Maven profiles). Alternatively Bedrock could look in "standard" places for the platform and infer the installations. This is easy for most platforms, especially OS/X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant