可以在Git-Pages上托管嵌入式Java Applet吗? [英] Can an embedded Java Applet be hosted on Git-Pages?

查看:124
本文介绍了可以在Git-Pages上托管嵌入式Java Applet吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在随附的github-pages页面中嵌入一个Java applet(存储在git存储库中).这可能吗?

I want to embed a java applet (stored in a git repository) in the accompanying github-pages page. Is this possible?

推荐答案

是.

尽管可以通过简单的markdown界面生成GitHub页面,但是分支中的任何文件都将作为gh-pages-site的一部分.

Although GitHub pages can be generated through a simple markdown interface, any files in your branch will be served as part of your gh-pages-site.

这意味着您可以在GitHub Pages网站上托管客户端脚本,例如Java-Applets或JS.

This means you can host client side scripts like Java-Applets or JS on your GitHub Pages site.

要托管Java小程序:

To host a java applet:

  1. 为您的Applet创建一个jar文件.
  2. 将.jar文件放入gh-pages分支的根目录中.
  3. 使用首选方法

  1. Create a jar file for your Applet.
  2. Place the .jar file into the root of your gh-pages branch.
  3. Embed the applet in one of your html pages using your prefered method like this, or maybe this:

*Assuming foo.jar and Bar.class are your file and applet-class*
<embed 
id="SomeName"
type="application/x-java-applet;version=1.6"
width="999" height="999" 
archive="foo.jar"
code="Bar.class"
pluginspage="http://java.com/download/"
myParam="YourParams" />

  • 提交/推送更改并等待(有时gh页不会立即更新).

  • Commit/Push the changes and wait (sometimes gh-pages are not updated immediately).

    这篇关于可以在Git-Pages上托管嵌入式Java Applet吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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