i have a project in netbeans that include two main classes, one starts a client and other starts a server.
I need to create two jar file to wrap into two exe file, one for client and one for server, how can i do this?
Thanks.
NB: im using ant.
Right-click the Libraries node and choose "Add JAR/Folder".
You have two options:
First, you can overwrite the NetBeans ant target in the project's build.xml in order to create your two jar files.
How you can do this, is explained in the online help of NetBeans. The chapter is named "Customizing the IDE-Generated Ant Script
But I would recommend to create different projects for each "executable".
Most probably server and client are using some common code, so you'll wind up with three different projects in NetBeans:
Then when you build the client or server project, each will generate a separate jar file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With