How do I package a jar and a Linux VM to run in Windows?
Generally people go the opposite direction and try to get more to run on Linux as it is generally cheaper (e.g. license free).  Also, Windows 10 is more of a personal workstation (vs Windows Server).  So, it seems like it may be a short term strategy (unless you're just learning on your own).

Having said that, the most DevOps standard way to do this would be to:


Install Docker on your Windows 10 PC.  Docker (in layman terms) lets you run apps on top of slimmed down operating systems of various kinds in a portable manner.
Dockerize the application(s) running on the Linux server.  You can start off with some slim linux variant like Alpine and just add what you need.
While you're at it, just Dockerize your windows 10 Java app at the same time and start running it from command line rather than NetBeans.
Now, you can run it all on Windows or Mac Or Linux (or kubernetes) with ease.


This assumes the server-side app is not a Java or otherwise portable app.  If it is portable, you can just run it locally and forget all this (although all of this is still a good idea).