Creating a jar file that executes other jar files (server and client)?

Hi! I’m wondering how to create a jar file that executes multiple programs. For my class project I have two .java files; one is a javafx program and the other is a server program. How I’ve been running these two programs together is by starting the server in one terminal window and then the GUI in another.

So I’m typing java -cp Main.jar Server Then java -cp Main.jar Main

But my project instructions make it sound like I need to create one jar file saved as my last name and that jar file executes both programs. I’m having a little difficulty figuring out how to do this.

i believe the solution is to setup the manifest of the jar correctly.
read this: