3

Launch package with Java 7

view full story
linux-howto

http://askubuntu.com – I've created a package for my application that depends on openjdk-7-jre, problem is I also need to ensure it's launched with Java 7 (chances are Java 6 is still the default.) At present I have Exec=java -jar Application.jar ...which will obviously just take the default Java install. I could specify something like: Exec=/usr/lib/jvm/java-1.7.0-openjdk-i386/bin/java -jar Application.jar ...but I'm a bit weary because the architecture (i386) bit is in there, and if that changes then presumably the path wouldn't work. Any ideas? Or am I trying to accomplish this the wrong way? (HowTos)