Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to package a jar file (for example, a .deb) and install it on Ubuntu 11.10. Basically I want to automate the installation of Jar file when I create a Ubuntu VM (using KVM).

Thanks.

share|improve this question
    
You cannot install jar files, do you mean to run them ? –  HackToHell Apr 1 '12 at 3:12

1 Answer 1

No, you cannot package/install a .jar file.

Java requires the Java Runtime Environment to run programs. You must have that installed on the client in order to run a .jar (Java executable) file.

Install the Java Runtime Environment on your client, copy the .jar, and run java -jar /path/to/file.jar.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.