Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot open Jar file

Tags:

java

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?

like image 915
Alberto Miola Avatar asked Sep 24 '26 08:09

Alberto Miola


1 Answers

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).

like image 57
Andrew Thompson Avatar answered Sep 27 '26 00:09

Andrew Thompson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!