I have a project in which in one package I made a Server, and in the second package I made a Client. It is working fine. I want to create a jar file. Is it possible to start the client and server separately from the same jar file?
I used a jar file where there is only one main one, and when I run the jar file, it automatically runs this class. Now I will have 2 executable classes. I want to pack them in only one jar, and then I want to run both from the same jar file. Is it possible? Any suggestions, links would be very helpful.
java jar
Tara singh
source share