The command line script fails with a cryptic error if the java executable cannot be found

Bug #501813 reported by Leif Singer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
play framework
Status tracked in 1.0
1.0
Fix Released
Undecided
Leif Singer
1.1
Fix Committed
Undecided
Unassigned

Bug Description

If the java executable cannot be found -- i.e., probably JAVA_HOME isn't set right -- the ´play´ command fails with a traceback similar to this, giving no direct clue as to what the reason for failure is:

Traceback (most recent call last):
  File "/Applications/play/play", line 805, in <module>
    pid = subprocess.Popen(java_cmd, stdout=sout, env=os.environ).pid
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 595, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1106, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

This should be replaced with a more meaningful error message.

Related branches

Leif Singer (lsinger)
Changed in play:
assignee: nobody → Leif Singer (lsinger)
status: New → In Progress
Leif Singer (lsinger)
Changed in play:
status: In Progress → Fix Committed
Leif Singer (lsinger)
Changed in play:
status: Fix Committed → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.