在线发布.jar游戏 [英] Publishing a .jar game online

查看:149
本文介绍了在线发布.jar游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个简单的Java游戏并收到了一个.jar文件.我想将此游戏在线发布在游戏网站(诸如kongregate,miniclip等Flash游戏网站)上,但是我不知道该怎么做.我已经读到您创建了一个applet,以便在线发布游戏.但是我可以为无法编辑的网站这样做吗?

TLDR:如何在网站上发布.jar文件,&如果您通过applet进行操作,那么无法编辑网站的人可以为该网站创建applet吗? 如果是后者,有人可以引导我找到创建小程序的指南吗?

解决方案

如何在网站上发布.jar文件,&如果您通过applet进行操作,那么无法编辑网站的人可以为该网站创建applet吗?

简短回答,不.好答案,不.

实际上,令您惊讶的是,您认为可以在无法编辑的情况下从站点启动小程序!如果可能的话, I 可以在可能受到 控制的网站中插入垃圾邮件!


关于部署应用程序:

部署Java桌面应用程序的最佳方法是使用 Java Web Start . JWS应用程序.可以通过网站上的链接启动.

部署JWS应用程序要容易得多.比部署applet(顺便说一句,顺便说一句,Chrome或IE很快将不再支持该小程序,,并且默认情况下在Safari和FF中将其禁止).

您仍然需要在网站上具有编辑权限"才能启动JWS应用程序.以及向网站添加新文件的功能(例如用于启动该应用的Jars和JNLP文件.).

最后,小程序或JWS必须通过有效的证书进行数字签名,然后JRE才有可能启动它们.

我已经创建了一个简单的Java.

现在看起来不那么简单,对吗? ;)

在简单应用"的情况下,部署通常要比人们预期的难得多.比编码和调试困难.

I have created a simple java game and received a .jar file. I want to publish this game online on game websites (flash game websites such as kongregate, miniclip, etc.) but am unaware as how i would go about doing this. I have read that you create an applet to post the game online; but can I do that for a website that i am unable to edit?

TLDR: How to post .jar file on website, & if you do so via applet, can someone who cannot edit the site create an applet for the website? If it is the latter can someone guide me towards a guide for creating an applet?

解决方案

How to post .jar file on website, & if you do so via applet, can someone who cannot edit the site create an applet for the website?

Short answer, no. Long answer, nope.

In fact, it surprises me that you would think that you can launch an applet from a site when you cannot edit it! If that were possible, I could insert spam ads in a site that is supposedly under your control!


As to deploying the application:

The best way to deploy a Java desktop application is using Java Web Start. A JWS app. can be launched from a link on a web site.

It is a lot easier to deploy a JWS app. than it is to deploy applets (which, BTW, soon won't be supported in Chrome or IE at all, and are by default blocked in Safari and FF).

You will still need 'edit permission' on the site to launch a JWS app. As well as the ability to add new files to the site (e.g. the Jars(s) & the JNLP file used to launch the app.).

Lastly, either applets or JWS will need to be digitally signed by a valid certificate before there is a good chance of the JRE allowing them to launch.

I have created a simple java..

Not looking so simple now, is it? ;)

Deployment is typically a lot harder than people expect, and in the case of 'simple apps.' harder than they were to code and debug..

这篇关于在线发布.jar游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆