Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: using jpacakge to create proper deb file from a jar

  1. #1
    Junior Member
    Join Date
    May 2023
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb using jpacakge to create proper deb file from a jar

    Hello. I am a newbie who is trying to create a game app deb file from a jar file .
    I use jpackage because I want to bundle java with the app

    Jpackage --input-dir <patjh to jar> --name Mygame --input-class Main.jar --type deb --main-jar Mygame.jar --install-dir /usr/bin/ --linux-menu-group "Game;"

    This gives an install in /usr/bin/Mygame
    but nothing in /usr/games which is where it should go

    I was able to generate a Mygame.deb for an unbundled version of Mygame.jar using a template.
    which installs into /usr/games and /usr/share
    as well as /usr/share/applications

    and the unbundled deb populates menu entries as above.
    How can I get jpackage to respect these entries?
    I am working on Ubuntu.
    Sorry if this question is not appropriate.
    Last edited by mrkrell; May 14th, 2023 at 02:17 AM. Reason: typo

Similar Threads

  1. Replies: 6
    Last Post: March 16th, 2014, 08:03 PM
  2. [SOLVED] getting the proper input from file
    By mia_tech in forum What's Wrong With My Code?
    Replies: 11
    Last Post: June 18th, 2012, 08:11 AM
  3. We get the exception :Cannot create a file when that file already exists
    By yatin.baraiya in forum File I/O & Other I/O Streams
    Replies: 5
    Last Post: May 25th, 2012, 10:33 AM
  4. Replies: 10
    Last Post: January 12th, 2011, 05:48 AM