I have program in Java in path: C:\...\MyProgram
.
This program have some dependencies to others *.jar files. I would run it using cmd. So what I do:
in cmd I write cd C:\...\MyProgram\bin
and then java -cp C:\...\MyProgram\*;. main.Main
. It is working. But now I exported MyProgram
to jar file. Could you tell me how can I run this now? So I have file MyProgram.jar with these same dependencies. How run it by using cmd?