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

Jenkins.app should check for Java runtime environment #27

Open
jautero opened this issue Mar 1, 2015 · 2 comments
Open

Jenkins.app should check for Java runtime environment #27

jautero opened this issue Mar 1, 2015 · 2 comments

Comments

@jautero
Copy link

jautero commented Mar 1, 2015

If /usr/bin/ doesn't have Java tools installed, you get a dialog box prompting to install JRE. Since JRE actually doesn't contain necessary links, you will get the dialog box even if you have JRE installed.
(See this: http://stackoverflow.com/questions/26483089/launchd-is-not-starting-jenkins-server-on-os-x-yosemite) Also, because Jenkins is started with launchd, you will get the dialog at regular intervals until the startup script timeouts. Startup script should at least test if the /usr/bin/java seems to work and if it doesn't exit without creating launchd job.

@stisti
Copy link
Owner

stisti commented Mar 1, 2015

I did give this some thought but I did not come up with a good way to check if /usr/bin/java is a real java runtime or Apple's placeholder. Also, I did not have the placeholders anymore because I had already gotten the prompt and installed java. Do you have any suggestions how to check it or access to a Mac where java has not yet been installed?

@stisti
Copy link
Owner

stisti commented Mar 1, 2015

Currently /usr/bin/java looks like this for me:

$ ls -l /usr/bin/java
lrwxr-xr-x  1 root  wheel  74  5 Jou 00:54 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java

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

No branches or pull requests

2 participants