• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tools for application distribution

 
Ranch Hand
Posts: 838
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a few class files that I want to "bundle up" for easy distribution (includes 2 "package"s - one that creates frameworks/layouts and the other works with shapes and drawings). What tools are available for packaging up code written in Java? Recommendations would be most welcomed as would reasoning for preferred use. Thanks again.
 
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's what JAR was created for.
 
Rob Hunter
Ranch Hand
Posts: 838
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's Ant used for? I was wondering if there was a GUI application for creating jars and such, as opposed to command-line. Thanks for the response.
 
Ranch Hand
Posts: 492
Firefox Browser VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ant is a tool for automating software build processes. I'm not sure it would be the best idea if you were just packaging up a few files. As Rob mentioned, JAR would be a good choice. A google search for "GUI to create Jar files" turned up a few decent looking results.

Ant homepage, if you want to read more about ant:
http://ant.apache.org/


Hunter
 
Rob Spoor
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ant can be used to automate compiling and creating JAR files, but Ant itself will not create a distributable file. You need to tell Ant to create one for you, usually using JAR.

I believe most IDEs (Eclipse, Netbeans, etc) allow you to create JAR files quite easily, but I suggest you read this so you know at least how it all works. You'll be glad when you need to create JAR files and you don't have an IDE available.
 
reply
    Bookmark Topic Watch Topic
  • New Topic