Good evening, I have a .jar file and I want it to be executed when the user accesses a specific php page on my website.
I have already tried with exec and shell_exec but it is not returning anything (blank page loading). Do any of you know if there is a way to solve this problem?
You cannot execute a jar file in the client computer of a web page because of security restrictions to avoid every computer in the world with a web browser to be hacked instanly.
You need to give the user instructions to install Java themselves in their computer, download the jar file and execute the application themselves.
There are toolkits like openwebstart.com that can help automate somewhat this but it may be overkill if your needs are simple.