My project is to develop an installer which is an executable for Windows, Mac and Ubuntu. The executables on Windows, Mac and Ubuntu are .exe, .app and .deb respectively. So, I converted my .jar file to a .exe file on Windows using a software called launch4j. And on MAC I used a software called Jar-Bundler to convert my jar in to .app file. I want to know if there is any specific software on Ubuntu to convert my jar file in to a .deb file.
Asked
Active
Viewed 1.6k times
6
Zanna
- 72,312
user272954
- 79
1 Answers
3
you can create a DEB from .jar file.
You have to add following code to your pom.xml file
<build>
<groupId>org.test</groupId>
<artifactId>some-lib</artifactId>
<version>1.0</version>
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>deb-maven-plugin</artifactId>
<configuration>
<description>A test project</description>
<maintainer>Tim OBrien <tobrien@discursive.com></maintainer>
<section>libs</section>
<priority>optional</priority>
<architecture>all</architecture>
</configuration>
<executions>
<execution>
<goals>
<goal>deb</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
and after that running
mvn package
will gives your a .DEB file.
For more information you must read this : http://mojo.codehaus.org/deb-maven-plugin/using-deb.html
Raja G
- 105,327
- 107
- 262
- 331