Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

MacOS High Sierra - Nightcode can't access Java #239

Open
gautamz opened this issue Jul 17, 2018 · 5 comments
Open

MacOS High Sierra - Nightcode can't access Java #239

gautamz opened this issue Jul 17, 2018 · 5 comments

Comments

@gautamz
Copy link

gautamz commented Jul 17, 2018

I had installed Java manually into /usr/local and have it in my path. I am able to run both Java and Clojure in cli. However when I run Nightcode it is not able to start the REPL and states "No Java runtime present, requesting install."

Is there a specific configuration option to allow Nightcode to access my Java install?

@oakes
Copy link
Owner

oakes commented Jul 17, 2018

Are you running nightcode as a jar, or did you use an installer? Also, by "manually" do you mean you extracted java yourself, or did you use a package manager? I've definitely had issues with the path before, especially when not using a normal java installer.

@gautamz
Copy link
Author

gautamz commented Jul 17, 2018

I used the .dmg installer for MacOS to get the app.
I have extracted Java manually and installed it in a folder of my choosing. I tried running the jar. When I double click the .jar app it doesn't run, saying Java needs to be installed. When I run the .jar app from cli it runs fine.

@oakes
Copy link
Owner

oakes commented Jul 17, 2018

So the Nightcode jar file runs from the terminal, but not from the Finder? And when you run Nightcode.app (rather than the jar), it runs but the REPL does not? One thing worth trying is setting the JAVA_HOME environment variable. Not sure if it affects things but perhaps it is what the system looks for when not running via the terminal.

@gautamz
Copy link
Author

gautamz commented Jul 17, 2018

I have set Java_Home, but I think it seems MacOS expects Java to be installed in /Library. A symlink should help fix this, once I can figure out where it needs to be placed.

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

No branches or pull requests

3 participants