Spark compiled as osx


I tried to compile Spark from the sources on osx, and generate an .app file with using a “ant” command. It compiles everything without error,

but the resulting .app file does not work. When I click on it, the icon appear for 3 seconds in the dock and then vanish, and nothing starts.

Any clue about this problem?