|
Post by jontara on May 8, 2017 5:28:28 GMT
Not having any luck setting JDK path with current master. It seems rhodes-setup no longer successfully guesses the location of the JDK, and nothing I have tried works. I always get "Invalid JDK path".
I tried various JDK, it doesn't seem to matter which version, it complains in every case.
This is on MacOS, and I think the JDK locations moved from before.
I tried this:
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin
But also two different 1.7 versions.
This is on MacOS Sierra 10.12.4
|
|
|
Post by jontara on May 8, 2017 5:37:05 GMT
I think this is since MacOS Sierra, since now I find I am also unable to build already-existing projects for Android as well. And the same issue with rhodes-setup not detecting JDK location.
Does it need 1.6 JDK?
|
|
|
Post by jontara on May 8, 2017 6:55:29 GMT
I figured it out. To save others the trouble, you can find your Java virtual machines with:
/usr/libexec/java_home -V
then you can copy-paste the path into the rhodes-setup prompt.
On my system I got:
☹ ➜ ~ /usr/libexec/java_home -V Matching Java Virtual Machines (3): 1.8.0_131, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home 1.7.0_80, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home 1.7.0_72, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
I was adding /bin to the end of the path, and that is incorrect.
It would be good to add a note to the documentation, since it appears that discovery of the JDK location by rhodes-setup seems broken on Sierra.
After installing Sierra, I think you will have to re-run rhodes-setup, and of course do it for each Rhodes installation if you have just installed Gems into rvm Gemsets.
|
|
|
Post by Alex Epifanov on May 8, 2017 12:53:07 GMT
Yes, we'll need to do something with rhodes-setup and docs. As a temporary workaround you may directly edit rhobuild.yml in the rhodes gem folder ( propably ~/.rms is a better place for a config file, we'll consider moving it in following versions ). It also seems that setting java dir to /usr/bin works fine ( at least I have Ubuntu and Rhodes works OK with this setting ).
|
|