I can start up IntelliJ Idea using the commandline, which is a shell script that starts up a java process. It then appears in the launcher, as normal. I can select "Keep in Launcher", but it only remains there until I reboot, then it disapears again.

This is the only application I've seen that does this - Stuff already in the applications menu stocks around fine if I tell it to stay in the launcher.