Monday, October 08, 2007

Kubuntu/ubuntu run command dialog doesn't run script.

I put together a Eclipse launch script to start eclipse with JDK 1.6 while my system's default JDK is 1.5. Some extra VM parameters are also used to make eclipse run a little bit faster because I live in it all day long.

The script loads Eclipse fine in bash console. But when I try to launch it from run command dialog by pressing Alt-F2, nothing happens. Eventually I figured out that the problem is in my launch script: I forgot to push "#!/bin/sh" at the beginning of the file.

I am not sure why nothing happens when the sha-bang '#!' is left out, but if you encounter something similar, it might be cause.