How to change/assign process name of java .jar
I'm running Minecraft under Linux, which involves running an executable .jar file. This means it shows up as "java" under ps, rather than "minecraft". I would like to assign it the process name "minecraft".

Looking around, I found the following tip for assigning a process name via bash:

http://stackoverflow.com/questions/882826/how-to-change-the-name-of-a-java-application-process

    exec -a goodname java ...


I usually run with:

    java -cp ~/Games/Minecraft/Minecraft.jar net.minecraft.LauncherFrame


So tried make a bash script:

    #!/bin/bash
    exec -a minecraft java -cp ~/Games/Minecraft/Minecraft.jar net.minecraft.LauncherFrame

But when I run this, it still shows up as "java" under the ps command.

What am I doing wrong?
How to change/assign process name of java .jar
===

I'm running Minecraft under Linux, which involves running an executable .jar file. This means it shows up as "java" under ps, rather than "minecraft". I would like to assign it the process name "minecraft".

Looking around, I found the following tip for assigning a process name via bash:

http://stackoverflow.com/questions/882826/how-to-change-the-name-of-a-java-application-process

    exec -a goodname java ...


I usually run with:

    java -cp ~/Games/Minecraft/Minecraft.jar net.minecraft.LauncherFrame


So tried make a bash script:

    #!/bin/bash
    exec -a minecraft java -cp ~/Games/Minecraft/Minecraft.jar net.minecraft.LauncherFrame

But when I run this, it still shows up as "java" under the ps command.

What am I doing wrong?