in Education by
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 presumably the path wouldn't work. Any ideas? Or am I trying to accomplish this the wrong way? Or will the above approach work after all? I can't check in the Java code itself since obviously it won't run if it's the wrong version so can't check anything! JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You could try to parse the output of /usr/bin/update-alternatives --query java in a postinst hook and rewrite your desktop file accordingly. Still dirty, but slightly better.

Related questions

0 votes
0 votes
    Why applications compiled with AOT (Ahead of compilation) launch faster?...
asked Jun 28, 2021 in Technology by JackTerrance
0 votes
    I am trying to override the tomcat session manager with an embedded tomcat. These are the steps preformed ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    Within the project explorer in eclipse, the context menu bars "Debug as" and "Run as" appear allowing ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    When I launch an instance on EC2, it gives me an option for t1.micro, m1.small, m1.large etc. There is a ... of what these terms mean? Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    I have an email template that I would like to launch from within the case using a Link/Button. I see the ... Any help you be great Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    omar owns a stall selling homemade cosmetics ans wants to launch an e - commerce site. he has lots of ... his business online? Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    The appropriate application has to be selected from menu to launch the application Select the correct answer from above options...
asked Dec 30, 2021 in Education by JackTerrance
0 votes
    At launch, how many characters were there to choose from in Apex Legends? Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    How To Launch An Amazon Ec2 Instance ?...
asked Mar 12, 2021 in Technology by JackTerrance
0 votes
    Explain How To Launch Ec2 Instance In An Availability Zone ?...
asked Mar 12, 2021 in Technology by JackTerrance
0 votes
    How to launch an activity in android?...
asked Jan 14, 2021 in Technology by JackTerrance
0 votes
    Which of these package is used for text formatting in Java programming language? (a) java.text (b) java. ... Expressions of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these class is not a member class of java.io package? (a) String (b) StringReader (c) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
...