tags:

views:

15

answers:

1

I have a project which builds into a single JAR in Netbeans.

However, to implement a basic auto update feature, I would like to move at least one of the packages (the HTTPClient package) to a separate JAR, as well as build a new JAR with a second Main Class in a different package.

That way both the current Mainclass and the Updater Mainclass can use the same HTTPClient package.

But... HOW?

Something to do with the build-impl.xml file. But where? What to change?

+1  A: 

You could create a separate project for your HTTPClient package which creates a single jar file.

Your main project then uses this project (and the created jar). You can use "Add project..." at the libraries of your main project and select the HTTPClient project.

Soundlink