How to put java application on the web?
-
26-10-2019 - |
سؤال
I am writing a minesweeper program in Netbeans, with java. I would like my friends to be able to try it, preferably on from there own computer, over the web. I have already made a .jar file, but do not know if how to proceed, or even if this is possible. How would I put it on the web so they can try it out?
المحلول
Why not just send them the jar file? Then, they can just run it on their computer.
To put the program in a webpage, you need to put it in an applet, which will require some extra work (and maybe some changes to your code).
نصائح أخرى
You need JavaWS (Java Web start ) Check this link http://docs.oracle.com/javase/1.5.0/docs/guide/javaws/developersguide/syntax.html
One option is to write your game as an Applet.
See the standard tutorial or you can google for many others.