Can't run Apache james on mac Sierra
问题 I'm using Apache James as email server for development purpose on mac Sierra - v 10.12.3 When I try to start/run it as super user sudo ./run.sh it I get the following error: ERROR: JAVA_HOME not found in your environment. Please, set the JAVA_HOME variable in your environment to match the location of the Java Virtual Machine you want to use. When I try to run it without sudo, I get the following: Using PHOENIX_HOME: /Users/myUserName/Dev/james-2.3.2.1 Using PHOENIX_TMPDIR: /Users/myUserName