Sencha Cmd installation on Mac: Java not found

Trying to install Sencha Command 3.1.1 on my iMac (10.8.3). The installer says:

The installer could not find a valid Java(tm) on this machine. Supported versions: Vendor : Any min. 1.6.0 max. any 

Following another thread, I tried to link / usr / bin / java to / Library / Internet Plugins / JavaAppletPlugin.plugin / Contents / Home / bin / java. Now I get this on the command line:

 ~ πŸ” java -version java version "1.7.0_21" Java(TM) SE Runtime Environment (build 1.7.0_21-b12) Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode) 

So this looks good, but the installer still complains that it cannot find Java. Why can't he?

+4
source share
2 answers

What ultimately fixed this for me, after consulting Sencha, the full JDK was installed, not just the JRE. I don’t know exactly why this was fixed, or what was the main reason, but now the command has been successfully installed and works fine.

+7
source

I had a JDK, but one thing for me was exporting $ java_home / bin:

 export PATH=$JAVA_HOME/bin:$PATH 
0
source

Source: https://habr.com/ru/post/1481858/


All Articles