Are running in an interactive (GUI) mode or just a terminal? I suspect it might the latter.
If you're not sure you can run the launchctl managername command to determine it. If it prints something else than Aqua it's most probably a non-interactive session and running graphical apps won't work.
See also the accepted answer on this SO question for a more precise way of detecting the type of your current session.