Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Scaling down a JAR file.

Options
  • 25-06-2006 4:45pm
    #1
    Registered Users 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 Posts: 4,074 ✭✭✭muckwarrior


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


  • Registered Users 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 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