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

JRE or JRE-server support #52

Open
aram535 opened this issue Jun 23, 2017 · 1 comment
Open

JRE or JRE-server support #52

aram535 opened this issue Jun 23, 2017 · 1 comment

Comments

@aram535
Copy link

aram535 commented Jun 23, 2017

Would be great if jre or even better jre-server would be supported. Most of the time JDK is not necessary and you're better off running the smaller executables.

@steenzout steenzout changed the title ENH: JRE or JRE-server support JRE or JRE-server support Aug 19, 2018
@jadbaz
Copy link

jadbaz commented Jan 31, 2019

I also don't understand why this is not supported. I needed to install JRE only.
However, the issue is not with downloading JRE package but only with setting javac alternative (since no javac is found)

I got it working by first specifying JRE variables (eg):

And then after running the role, specifying new alternatives:

- name: set Java version as default
  alternatives:
    name="{{ item.exe }}"
    link="/usr/bin/{{ item.exe }}"
    path="{{ item.path }}/{{ item.exe }}"
  with_items:
    - { path: "{{ oracle_java_home }}/bin", exe: 'java' }
    - { path: "{{ oracle_java_home }}/bin", exe: 'keytool' }
    # - { path: "{{ oracle_java_home }}/bin", exe: 'javac' }
    # - { path: "{{ oracle_java_home }}/bin", exe: 'javadoc' }

I think at some point I should submit a PR for this with a default variable oracle_java_is_jre=false

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

3 participants