The command line script fails with a cryptic error if the java executable cannot be found
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/
pid = subprocess.
File "/System/
errread, errwrite)
File "/System/
raise child_exception
OSError: [Errno 2] No such file or directory
This should be replaced with a more meaningful error message.
Related branches
- play framework developers: Pending requested
-
Diff: 79 lines (+16/-9)2 files modifiedframework/src/play/Invoker.java (+8/-8)
framework/src/play/mvc/Controller.java (+8/-1)
Changed in play: | |
assignee: | nobody → Leif Singer (lsinger) |
status: | New → In Progress |
Changed in play: | |
status: | In Progress → Fix Committed |
Changed in play: | |
status: | Fix Committed → In Progress |