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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Scaling down a JAR file.

  • 25-06-2006 3: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,099 ✭✭✭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