Launch with Java 7 in Debian package
问题 I've created a Debian 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