Reputation: 5
I want to make deb file with java project I made and install it on other computer
I checked Debian New Maintainer's Guide and other tutorials, still I can't get it.
I made a file 'MyApp' and made a .deb file with it,
MyApp/Debian/control
MyApp/MyApp.jar
And installed it in my terminal to check it
sudo dpkg -i MyApp.deb
The terminal says it is unpacked, but nothing happens
So here are my questions,
MyApp
in my terminal?
Upvotes: 0
Views: 420
Reputation: 81
Most of the Debian doc contain very complicated methods to create deb file. You can find simple steps to follow to create deb files in below link https://www.lookup2learn.com/post/how-to-create-debian-package
Upvotes: 0
Reputation: 31374
Packaging (for Debian, or anything else), is non-trivial. It's not something that can be explained in a forum in three paragraphs.
Luckily, there is quite a bit of documentation available for creating Debian packages, e.g.
Your problems are covered by these tutorials (even though the list includes the "New Maintainer Guide" which you've already read).
To give a more specific advice:
make install
use that. if it doesn't, what would it do if there was one?.jar
file is not an executable. if you want your program to be executable, you will need a wrapper script, that calls your .jar
file with the proper java-interpreterdebian/install
filedebian/manpages
fileUpvotes: 1