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

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

问题描述

我创建了一个简单的 Java 游戏并收到了一个 .jar 文件.我想在游戏网站(如 kongregate、miniclip 等 Flash 游戏网站)上在线发布此游戏,但我不知道我将如何进行此操作.我读到您创建了一个小程序来在线发布游戏;但是我可以为我无法编辑的网站这样做吗?

TLDR:如何在网站上发布 .jar 文件,&如果您通过小程序这样做,无法编辑网站的人可以为网站创建小程序吗?如果是后者,有人可以指导我创建小程序的指南吗?

解决方案

如何在网站上发布 .jar 文件,&如果您通过小程序进行操作,无法编辑网站的人能否为网站创建小程序?

简短的回答,不.答案很长,不.

事实上,当您无法编辑小程序时,您会认为可以从站点启动小程序,这让我感到惊讶!如果可能的话,可能会在一个据称受控制的网站中插入垃圾广告!><小时>

关于部署应用程序:

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

部署 JWS 应用要容易得多.而不是部署小程序(顺便说一句,Chrome 或 IE 很快将完全不支持,,并且默认情况下在 Safari 和 FF 中被阻止).

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

最后,applet 或 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天全站免登陆