I am facing this issue whenever I am trying to run Play 1.2.1 in my system. Previously, I had Play 2.0 in my system. I exported the
$PATH variable so that
$PATH contains the path to Play 2.0 directory.
Now, I am trying to run Play 1.2.1 in Mac OS X 10.7.4.
My PATH variable looks like:
-bash: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/local/mysql/bin:/Users/sabya/Documents/Play_Framework/play-2.0: No such file or directory
After exporting the
$PATH for play 1.2.1 my
$PATH looks like:
-bash: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/local/mysql/bin:/Users/sabya/Documents/Play_Framework/play-2.0:/Users/sabya/Downloads/Work/play-1.2.1: No such file or directory
I created a new project through
play new test_app. But whenever I am trying to do
play run, it shows:
Could not execute the java executable, please make sure the JAVA_HOME environment variable is set properly (the java executable should reside at JAVA_HOME/bin/java).
java in the same directory gives me proper output.
-bash: /Library/Java/Home: No such file or directory
Everything works fine in Ubuntu.
What is the workaround for this situation? I have Googled extensively, but I did not get anything suitable.
Is the trailing ":" in
$JAVA_HOME a problem?