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?
我正在使用java在Netbeans中编写一个扫雷程序。我希望我的朋友能够通过网络尝试,最好是从自己的计算机上尝试。我已经创建了一个.jar文件,但不知道如何继续,或者即使这是可能的。我如何将它放在网上,以便他们可以尝试一下?
3 个解决方案
#1
2
Why not just send them the jar file? Then, they can just run it on their computer.
为什么不直接发送jar文件?然后,他们可以在他们的计算机上运行它。
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).
要将程序放在网页中,您需要将其放在applet中,这需要一些额外的工作(可能会对您的代码进行一些更改)。
#2
1
You need JavaWS (Java Web start ) Check this link http://docs.oracle.com/javase/1.5.0/docs/guide/javaws/developersguide/syntax.html
您需要JavaWS(Java Web start)检查此链接http://docs.oracle.com/javase/1.5.0/docs/guide/javaws/developersguide/syntax.html
#3
1
One option is to write your game as an Applet.
一种选择是将您的游戏编写为Applet。
See the standard tutorial or you can google for many others.
请参阅标准教程,或者您可以google其他许多人。
#1
2
Why not just send them the jar file? Then, they can just run it on their computer.
为什么不直接发送jar文件?然后,他们可以在他们的计算机上运行它。
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).
要将程序放在网页中,您需要将其放在applet中,这需要一些额外的工作(可能会对您的代码进行一些更改)。
#2
1
You need JavaWS (Java Web start ) Check this link http://docs.oracle.com/javase/1.5.0/docs/guide/javaws/developersguide/syntax.html
您需要JavaWS(Java Web start)检查此链接http://docs.oracle.com/javase/1.5.0/docs/guide/javaws/developersguide/syntax.html
#3
1
One option is to write your game as an Applet.
一种选择是将您的游戏编写为Applet。
See the standard tutorial or you can google for many others.
请参阅标准教程,或者您可以google其他许多人。