Self Host Scratch Projects

I originally posted this on my blog at badgerfiles.com blog, but it really deserves to be here.

When I was in Columbus, a couple people asked me how to host Scratch projects on your own web server. Scratch makes it easy to share projects on the web, but for one reason or another, some people may want to host projects on a server they control.

Here is how you can host your own projects.

  1. Download these two files from the Scratch web site and save them to your computer:
  2. Create a directory on the web server. For example, scratch.
  3. Upload the ScratchApplet.jar and soundbank.gm files to the directory you
    just created on the web server.
  4. Upload you Scratch project to the scratch directory you created on the web server.
  5. Now, we need to build an HTML page to display the project. Save the following code as scratch.html:<html>
    <title>Scratch Project</title>
    <body> <applet id=”ProjectApplet” style=”display:block” code=”ScratchApplet” codebase=”./” archive=”ScratchApplet.jar” height=”387″ width=”482″>
    <param name=”project” value=”project- name.sb“> </param></applet> </body> </html>
  6. In the scratch.html code, find the value attribute and change
    project-name.sb to the filename and path, if necessary, of the project you uploaded to the web server.

Open a web browser and view the URL of the page you created, http://www.example.com/scratch/scratch.html.

That’s all there is to it.

2 thoughts on “Self Host Scratch Projects”

  1. Why don’t you delete stale guides like this? The links to the mit java code are auth-blocked…

    What a pointless page, if not kept up to date, not to mention an utter waste of time.

Leave a Reply

Your email address will not be published. Required fields are marked *