Results 1 to 5 of 5

Thread: JAR to DEB

  1. #1
    Join Date
    Apr 2012
    Beans
    48

    Lightbulb JAR to DEB

    Hello, i wanna package JAR to DEB. I am interested in Ubuntu Packaging but still confused in.

    If I have a JAR, does it need any shell script included in the DEB later? Can somebody give me simple explanation? I follow this tutorial: http://blog.noizeramp.com/2005/08/31...other-debians/ but I confused for what the myapp.sh is.

    In the core, I want this DEB later, can act like anoteher DEB packaged in Ubuntu. It can install app, place icon in menu, show description in USC, and can track dependency. How can I create it?

    If I should create a shell script, what I should write in the script file? I have read the Ubuntu and Debian Packaging Guide, but i am confused. I am newbie but curious here

    Thank you...

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: JAR to DEB

    myapp.sh is a small wrapper script that invokes the JAR. According to Debian policy, Java applications should behave as ordinary binaries. For your application, the script obviously will be named differently. Please do not append .sh extension to it, see Debian policy 10.4

    Have a look at Debian Java policy.
    Last edited by schragge; February 15th, 2013 at 10:11 AM.

  3. #3
    Join Date
    Apr 2012
    Beans
    48

    Re: JAR to DEB

    Thank you, I wanna read them and back here to ask you again

  4. #4
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: JAR to DEB

    The Maven 2 DEB Plugin can be used to produce a Debian package from any project that can be packaged as a JAR. Debian packages can be used on most Debian-based Linux Disributions including Ubuntu.

  5. #5
    Join Date
    Apr 2012
    Beans
    48

    Re: JAR to DEB

    Hello slickymaster,

    I've given a page: http://blog.noizeramp.com/2005/08/31...other-debians/ by my friend in #ubuntu-indonesia IRC channel. I follow that, and works. By adding a complete mirror of Lintian's Tags pages, I have created my first DEB in my life. Surely, I have to borrow existing DEB in my /var archives that comes from official repo (high quality DEB) so my DEB actually same with that DEB in directory structure or configuration files It is the easiest way for learning Ubuntu/Debian Packaging for me... Just imitate any existing DEB Use archive manager for open DEB contents.

    I've installed VirtualBox 2 days ago and installed Maverick and Precise there. I tried to install my DEB on both OS, and works! Fine! I am so happy. Thank you...

    But my DEB is still need some improvements Lintian says there is still many warnings (but no error). Thank you.

    So, the solution is following that page and have Lintian pages

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •