Find the answer to your Linux question:
Results 1 to 6 of 6
Hi Guys, I have written an Application in Java. I need to package this application into an RPM. My Application consists of : a> 2 JAR files. b> 1 man ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! agilebeing's Avatar
    Join Date
    Mar 2007
    Posts
    9

    Creating RPMs for My Java Application


    Hi Guys,

    I have written an Application in Java. I need to package this application into an RPM.

    My Application consists of :

    a> 2 JAR files.
    b> 1 man page.
    c> script to launch the jar file appropriately.
    d> Some help files.

    i want to create an rpm for this app. All that the rpm is expected to do is to copy the files into appropriate directories.

    e.g. when the following command is given
    rpm -ivh MyPackage-VERSION.rpm

    The rpm should create a directory(Say AppName) inside /usr and copy the
    2 jar files & My HelpFiles in /usr/AppName, Copy The script to launch the jar
    file in the /bin directory and finally the man page in /usr/man/man8 directory

    For the pourpose of simplicity, i dont want my rpm to compile/build etc. Its merely putting the file in appropriate directories.

    I have heard that spec file needs to be created. Couly any1 please help me with creating such a spec file...

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    The info you need is available here.

  3. #3
    Just Joined! agilebeing's Avatar
    Join Date
    Mar 2007
    Posts
    9

    Thanks...!

    Thanks a lot Buddy... That's all the info I'd ever need about RPMs...

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Yes its a very good resource. I have used it myself to create rpms for Fedora Core. Another good resource on rpm is available at rpm.org.

  5. #5
    Just Joined! agilebeing's Avatar
    Join Date
    Mar 2007
    Posts
    9

    Good Resource

    ON rpm.org, The info bout creating a Spec file given here is pretty much informative & to the point

  6. #6
    Just Joined!
    Join Date
    Oct 2008
    Posts
    3
    OP,
    Were you able to build an RPM for your java app. I am strugging with the same. can you please share your spec file?

    thanks!!!

Posting Permissions

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