Results 1 to 3 of 3
  1. #1
    Atriamax is offline Member
    Join Date
    Sep 2009
    Posts
    41
    Rep Power
    0

    Default How to make a runnable jar with necessary libraries

    So i want to export an application i made to use on any Mac. It is a swing application that i made with Netbeans, so it uses the extra swing libraries that netbeans provides. When I build my project how do i know which libraries to build with it?
    This is assuming that the computer Im running it on will not have the netbeans libraries, or any java libraries at all

    thanks

  2. #2
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    5

    Default

    In netbeans, when you build your project it will create a folder called "dist". That folder will contain the jar and all non-standard libraries included. As long as the client has the version of java installed that you build your code in or something greater, they will be able to run your app. You could zip it and distrubte it that way, or make and installer for it:

    Java Application Installer: izPack
    My Hobby Project: LegacyClone

  3. #3
    Atriamax is offline Member
    Join Date
    Sep 2009
    Posts
    41
    Rep Power
    0

    Default

    Thats what i do, but it doesn't create a lib folder and outputs: "Not copying libraries"

Similar Threads

  1. Java: Make runnable java-file
    By MrBambey in forum New To Java
    Replies: 4
    Last Post: 08-10-2009, 06:40 AM
  2. what is SwingUtilities.invokeLater(new Runnable())
    By sivakumar_sakam in forum AWT / Swing
    Replies: 3
    Last Post: 05-06-2009, 04:47 AM
  3. Creating a Thread using the Runnable interface
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-09-2008, 06:31 PM
  4. Error : Runnable did not complete within 10000ms
    By piyushgpt1 in forum Advanced Java
    Replies: 1
    Last Post: 02-05-2008, 07:04 PM

Posting Permissions

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