Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).


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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .