I tried to execute a .jar
using HTML
or PHP
.
In the first case I wrote the code below:
<applet code=Diagnostica.class
archive="Diagnostica/Diagnostica.jar"
width="120" height="120">
</applet>
This way doesn't work cause the file Diagnostica.jar
need to contain an applet
I suppose.
So I tried the second option in PHP
:
exec("java -jar Diagnostica/Diagnostica.jar");
This way it works. Diagnostica.jar
starts outside the browser, but I want to start it inside the browser.
How can I do?