Alberto Miola
Alberto Miola

Reputation: 4751

Cannot open Jar file

I've started developing Java applications with NetBeans some days ago and I've created an applet that makes some stuff about linear equations and disequations. That applet is also stored on my server and I load it into a webpage using the <applet /> tag. When I double click the *.jar (generated from NetBeans when I load the project) file on my computer, nothing happens. I know this is a stupid question, I've also read a lot of articles about this question but I didn't solve my problem. What could I do if I want execute that jar file from my computer?

Upvotes: 3

Views: 422

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168815

What could I do if I want execute that jar file from my computer?

The easiest way to achieve that is to launch the existing applet free floating using Java Web Start. JWS Can install desktop shortcuts or menu items to launch the app.

Re. suggestions that you have to make it a runnable Jar. That will work if the app. normally is a JFrame or Frame, but it won't work for an applet unless the applet has been written as an hybrid application/applet (and since you did not do that deliberately, no it wasn't).

Upvotes: 3

Related Questions