简体   繁体   English

使Java Applet在线

[英]Making java applet online

this is my first time posting here and i really need some help with my assignment,Thanks. 这是我第一次在这里发布信息,我的工作确实需要一些帮助,谢谢。

Firstly, I want to know what are the steps to access my java applet online and how do i modify my URL accordingly?. 首先,我想知道在线访问我的Java小程序的步骤是什么,以及如何相应地修改我的URL?

Secondly, Currently i'm on the wait for a Helihost.org server, so how do i upload my files or applets to the server ? 其次,当前我正在等待Helihost.org服务器,那么如何将文件或小程序上传到服务器? if that's the right way to ask the question . 如果这是提出问题的正确方法。

PS : If you can provide some really simple examples with the answer it'll be a GREAT help, if not it's okay. PS:如果您可以提供一些非常简单的示例并给出答案,那将是一个很大的帮助,如果没有的话,这是可以的。 Thank You. 谢谢。

1- you need to create html or jsp page that have an applet tag which will load your applet, ex: 1-您需要创建带有applet标签的html或jsp页面,该页面将加载您的applet,例如:

<applet code="my.package.name.myAppletClassName" archive="mysrcCodeJarFile.jar"></applet> 

my.package.name.myAppletClassName is the packange name and class name of the applet my.package.name.myAppletClassName是小程序的包装名称和类名称

mysrcCodeJarFile.jar is the jar file that contains the applet among any other needed source code or resources. mysrcCodeJarFile.jar是jar文件,其中包含小程序以及任何其他所需的源代码或资源。 it should be placed properly next to jsp or html page, or use relative path in case jar file is in sub-folders or higher. 应该将其正确放置在jsp或html页面的旁边,或者使用相对路径 ,以防jar文件位于子文件夹或更高版本中。

once thi is done, you can access your jsp page using your domain name and project name in web-server ex: http://www.myd omain.com/myapp/applet.jsp 一旦完成,您就可以使用域名和项目名称在Web服务器上访问您的jsp页面,例如: http://www.myd omain.com/myapp/applet.jsp

2- you can upload your files once you got the host info, you should get an FTP account info (username/ password and IP:Port) so you can use any ftp client and upload your files. 2-您可以在获取主机信息后上传文件 ,您应该获得一个FTP帐户信息(用户名/密码和IP:端口),以便您可以使用任何ftp客户端来上传文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM