How to execute a .jar file

One Star

How to execute a .jar file

Hello everyone
I need some help about this issue. How can I execute a .jar file that reside on my desktop? I read about the componet "tSystem" but I try to insert on COMMAND NAME "cmd /c java -jar file.jar" but it doesen't works.
Any suggestions please?
Thanks
Tommaso
Moderator

Re: How to execute a .jar file

Hi,
It depends on your .jar file. For your .jar file, could you run it successfully in command line window? If not, is there any setting in manifest file of jar?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.