I'm very new to Ubuntu, installed 12.04 for the first time a few days ago.
So I basiclly got a game (feedthebeast, mod for minecraft). Now the jar file which I downloaded works just fine, but I find it clunky to go find it everytime I want to play, so I want a shortcut.
Someone on Youtube made this as a
.sh file which I can then later make a
.desktop in my applications to make the shortcut, pretty complicated tbh but the path in this file is obv his path.
BINDIR="$(dirname "$(readlink -fn "$0")")" cd "$BINDIR" export LD_LIBRARY_PATH="/usr/lib/jvm/java-7-oracle/jre/lib/amd64" java -Xms1G -Xmx4G -jar ~/.ftblauncher/FTB_Launcher.jar
But how do I find MY java path, the correct one for this to work. I tried multiple ways, but for some reason I don't got the folders, where people are suposed to have java - when I run
whereis java this is what I get:
/usr/bin/java /usr/bin/x11/java/ /usr/share/java/ /usr/share/man/man1/java1.gz
Neither looks like the one he used above.
I installed java following this video:
Essentially I jsut want a shortcut for my .jar file so I can easily access my game on the unity dock
If you guys can help me, or come up with an easier way to make this shortcut for my .jar file I would be so happy!