CompSci 6: Program Design & Analysis I(Fall 2009) | |||||||||||||||||||||||||||||||||||
|
To post your program on the web so that others can see it within a web page, you must package it properly and create a web page that includes the proper HTML tag to inform the browser how to run your program. These steps are described in detail below. Packaging your ProjectTo package all of the code that makes up your game into a single file, your will need to save your project as a Java ARchive, JAR, file.
Posting Your Project as an AppletTo run your project within a web page, you will need to include the following HTML tag within your page (you can type this into a text editor, like Notepad, but not a word processor, like Microsoft Word (when using Word, use the example page linked below instead)): <applet code="Canvas"
Where Here is an example page for you to use as a starting point; one is also included with each project you download through Eclipse. You can add text to this page to describe your project in any web page editor, just be careful when editting the tag itself. Finally, when you copy your web page to your course web folder on
|
||||||||||||||||||||||||||||||||||
| Last updated Wed Nov 18 14:00:37 EST 2009 | |||||||||||||||||||||||||||||||||||