Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Scaling down a JAR file.

  • 25-06-2006 04:45PM
    #1
    Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭


    Heres the deal. I have a jar file with numerous classes in it however I am only using a couple of the classes.

    So I want to create a new jar with just classes I want and thier dependancies.

    Is there an easy already around to do this does anyone know (I can do it myself but would prefer easier way :) )


Comments

  • Registered Users, Registered Users 2 Posts: 4,123 ✭✭✭muckwarrior


    Surely you can just unpack the jar and then repack it with only the classes you want?


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    Well I what I plan to do is use eclipse to determine the dependancies, but thought there would be an easier way.


  • Registered Users, Registered Users 2 Posts: 4,188 ✭✭✭pH


    I used this, bit of a pain in the ass to use, but it does find dependencies in the compiled bytecode. It won't build you a cut down jar or anything, so if you already know what the dependencies are then it's of no use.

    http://depfind.sourceforge.net/


Advertisement