I'm trying to get my java program to execute a jar file which is located on a USB-drive, and I got the code to find the specific file and it's path already but I can't find anything online about how to run said file.
Can anyone help me or direct me to where I can find how to do this?
To clarify, this is not asking how to open a jar file from the cmd, this is asking how to open a jar file from a different java application. This is somewhat related to: how to run a jar file and running command line in java as it combines both of them.