1

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.

1
  • 1
    You cannot install jar files, do you mean to run them ?
    – HackToHell
    Commented Apr 1, 2012 at 3:12

1 Answer 1

2

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.

You must log in to answer this question.

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