Executing JAR by Browser

11

I'm having trouble figuring out how to do it:

What I Wish

I want to create a Chrome / Firefox extension that when I press a button on the html of my extension, it runs a .JAR file going through the user settings parameter in the extension. So I thought about using JNLP.

Problem

But from what I understand of JNLP it runs the JAR directly from the server, and what I really want is for it to execute a JAR on the client machine, that JAR will already be in a folder within the extension minhaExtensao/lib/foo.jar

Doubt

Would it be possible to run it like this on the client machine?

    
asked by anonymous 30.04.2014 / 22:52

2 answers

6

Take a look here link

I believe you just need to create as the example below in the html of your plugin.

<applet code=TicTacToe.class 
        archive="TicTacToe.jar"
        width=120 height=120>
        <param name="param1" value="value1">
        <param name="param2" value="value2">
</applet>

Do the test and put the result here, I'll try to make one too.

    
05.05.2014 / 15:09
2

JNLP does not run the code on the server, it is a protocol made exactly to allow distribution of applications to clients (ie, among other features, JNLP allows a client to download and run an application locally). I recommend Oracle's official tutorial on Apple Deploy , as well as the path Deployment in-Depth . By describing your requirements, however, I would go beyond an Applet, I believe you are looking for Java Web Start and the infamous

06.05.2014 / 21:05