This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Advanced Topics
  •  » ITopic: Are there ways to share your creation other than the website?

#26 2007-08-01 02:00:21

bourd
Scratcher
Registered: 2007-06-14
Posts: 4

Re: ITopic: Are there ways to share your creation other than the website?

when i try to put on my web page i see this ----------------------------------------------------
load: class ScratchApplet not found.
java.lang.ClassNotFoundException: ScratchApplet
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 10 more
load: class ScratchApplet not found.
java.lang.ClassNotFoundException: ScratchApplet
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 10 more
load: class ScratchApplet not found.
java.lang.ClassNotFoundException: ScratchApplet
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 10 more
load: class ScratchApplet not found.
java.lang.ClassNotFoundException: ScratchApplet
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 10 more
load: class ScratchApplet not found.
java.lang.ClassNotFoundException: ScratchApplet
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 10 more
java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file ScratchApplet
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Offline

 

#27 2007-08-02 10:39:23

Twilitlord
Scratcher
Registered: 2007-08-02
Posts: 1

Re: ITopic: Are there ways to share your creation other than the website?

I can't download the soundbank.gm. The screen (if you can read it quickly enough) says: Navigation cancelled: try Refreshing the page. Then, after 1/2 or 1 second, it reloads in an eternal loop! mad
help!

Offline

 

#28 2007-08-02 10:48:18

Canthiar
Scratcher
Registered: 2007-05-16
Posts: 100+

Re: ITopic: Are there ways to share your creation other than the website?

bourd, how is your website setup?  What host are you using?  Did you place ScratchApplet.jar in the same directory as your html file?

Offline

 

#29 2007-08-02 10:49:31

Canthiar
Scratcher
Registered: 2007-05-16
Posts: 100+

Re: ITopic: Are there ways to share your creation other than the website?

Twilitlord, are you saying you can't download soundbank.gm off of the scratch website or your own website?

Offline

 

#30 2007-09-24 16:17:07

ScipioBellorum
Scratcher
Registered: 2007-05-15
Posts: 94

Re: ITopic: Are there ways to share your creation other than the website?

I think a system whereby you can upload a project (eg. if it contains personal info) that would not be visible to the public but could be used to embed a project in another webpage.


http://img393.imageshack.us/img393/339/logory8.png
                      The word processor for Scratch

Offline

 

#31 2007-10-28 22:53:52

Moogop12345
Scratcher
Registered: 2007-10-27
Posts: 1

Re: ITopic: Are there ways to share your creation other than the website?

do you people speak english? i have no idea what you want me to do.

Offline

 

#32 2007-10-29 19:16:36

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: ITopic: Are there ways to share your creation other than the website?

The website is the main method for sharing scratch code, and the only one recommended for beginners.  People with more knowledge of web site creation can create their own web sites that run the .sb files.  If you don't understand the instructions that are provided, then using the scratch web site is probably best for you.

Offline

 

#33 2007-11-24 03:16:19

Nilayan
Scratcher
Registered: 2007-11-24
Posts: 1

Re: ITopic: Are there ways to share your creation other than the website?

plz. counldn't you do something to convert .sb files to.exe files
maybe you should take out a service pack

Offline

 

#34 2007-12-09 22:31:43

chandradhar
Scratcher
Registered: 2007-06-10
Posts: 2

Re: ITopic: Are there ways to share your creation other than the website?

hi... can we make scratch files into .exe files and keep it on cd or distribute them to our friends who don't have scratch in their pc?

Offline

 

#35 2007-12-10 00:26:45

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: ITopic: Are there ways to share your creation other than the website?

No, scratch cannot be converted to .exe files.  You can put together a web page (using HTML)  that includes your project and give that to a friend, who can then run it with their browser.

There are partial instructions in the "Link to this project | embed" point on the web page for each project.

It would be useful for the scratch team to put together an "HTML" wrapper that makes any sb file into an HTML page that does not require access to the web.  That would allow CDs to be quickly made that can run standalone.

Offline

 

#36 2007-12-10 10:56:36

Nautilux
Scratcher
Registered: 2007-12-10
Posts: 6

Re: ITopic: Are there ways to share your creation other than the website?

nick wrote:

Hi!

There's actually a way to share scratch projects on your website or in a folder on a CD or computer without posting them to scratch.mit.edu first. To do it, you need to download the following files to the directory on your website (or a folder on your computer):

1. http://scratch.mit.edu/static/misc/ScratchApplet.jar
2. http://scratch.mit.edu/static/misc/soundbank.gm
...
Nick

Hello there,

i really tried hard to find a final answer on this website for a specific problem related to the ScratchApplet. But i am sorry, i did not found an answer:

I do not have any problems serving the project and the soundbank files from a web server. On an Mac with Mac OS X (Safari 3.0.4, Java Plug-in 1.3.1) everything runs perfectly locally from the local hard disk.

If i try to load the project and the soundbank file locally from the local hard disk on a PC running with Windows XP and Explorer 6 or 7 or Firefox (Java 1.6.0) the projects are loading into the applet but i do get an error trying to load the soundbank.gm file "No soundbank; note & drum commands disabled."

The Java Console shows:
javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream
    at javax.sound.midi.MidiSystem.getSoundbank(Unknown Source)
    at PlayerPrims.init_midi(PlayerPrims.java:319)
    at PlayerPrims.prim_midinoteon(PlayerPrims.java:279)
    at PlayerPrims.dispatch(PlayerPrims.java:117)
    at Logo.evalSym(Logo.java:55)
    at Logo.evalToken(Logo.java:41)
    at Logo.eval(Logo.java:29)
    ...
    ...
    at Logo.runToplevel(Logo.java:15)
    at LogoCommandRunner.run(Logo.java:596)
    at java.lang.Thread.run(Unknown Source)

Can you please give me some info how to solve that problem?

Thanks

Dieter

Offline

 

#37 2007-12-10 16:53:41

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: ITopic: Are there ways to share your creation other than the website?

Just quickly chiming in. You might be able to solve your problem by installing the soundbank permanently on the machine. Sun provides instructions on how to do that. Sorry I don't have much more info for now...


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#38 2007-12-11 04:04:00

Nautilux
Scratcher
Registered: 2007-12-10
Posts: 6

Re: ITopic: Are there ways to share your creation other than the website?

Hi Andres,

first i would like to thank you for your answer.

I found the info to download and install the soundbank.gm file on:

http://java.sun.com/products/java-media/sound/soundbanks.html

After downloading one of the soundbank files put it (on a standard Windows installation) to:

C:\Program Files\Java\jre1.6.0_02\lib\audio\soundbank.gm

The location perhaps differs depending on the Java enviroment you are using. And of course it is not necessary to download one of the soundbank files from SUN, because you still can use the one from the scratch website. It looks like the scratch version of the soundbank file is equal or similar to the minimal version of SUN.

After the installation the applet is loading the soundbank file locally and the projects are working fine with sounds from the local hard disk.

I still would like to ask someone from the Scratch team who is working on the applet to have a look at this problem. If you are planing to use scratch to deliver some projects on  CD and your target group are people in the age of 5 to 6 years this solution is far to complicated for them. I neither do aks for a conversion tool to flash nor do i ask for an exe-kind-solution. But it really would be helpfull to have something to get projects running locally w i t h o u t the need of anything to be installed, especillay on the main target platform Windows.

Thanks again

Dieter

Offline

 

#39 2007-12-11 05:53:20

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: ITopic: Are there ways to share your creation other than the website?

The problem (that Windows and Windows browsers don't always come properly installed, and that fixing them is non-trivial) is a difficult one for the Scratch team to fix.

Offline

 

#40 2007-12-11 10:13:33

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: ITopic: Are there ways to share your creation other than the website?

Nautilux: I am glad that worked. You're right, the process is too difficult even for adults. Our goal has always been for kids to share their creations on-line or with other people that have Scratch already (imagine a classroom with all computer running Scratch  and sharing the sb files). We are not so keen on the idea of generating exe's because it would hide the code and sharing as an Applet doesn't seem to be so highly needed given that most people who are using Scratch are willing to share it online. Maybe at some point down the road it would be nice to have a mechanism like the one you describe. Or perhaps some software developer would be interested in creating a program that packages Scratch projects ready to be put on a CD?  big_smile


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#41 2008-01-07 17:56:15

spencer8ab
Scratcher
Registered: 2007-09-24
Posts: 3

Re: ITopic: Are there ways to share your creation other than the website?

I would suggjest just searching for "convert javascript to exe" because when I searched for that a lot of options came up like html and java script to exe you could use the java script from scratch projects and convert it to exe. Hope this helps!

Offline

 

#42 2008-01-08 04:34:48

redware
Scratcher
Registered: 2007-05-21
Posts: 92

Re: ITopic: Are there ways to share your creation other than the website?

If you are trying to host scratch files on a server, the problem is with the server not the browser I think.

I am successfully hosting (I hope) a scratch application on my website using windows IIS. As discussed in a different thread , for windows IIS you need to add mime types for sb and gm files. Go to the propertes/http headers section of the IS setup and add mime types there. 

See http://scratch.mit.edu/forums/viewtopic.php?pid=15037#p15037 and try my scratch app and let me know if there are problems -
http://www.redware.com/scratch/playfish.html

Offline

 

#43 2008-02-01 05:56:00

dfraser
Scratcher
Registered: 2008-02-01
Posts: 3

Re: ITopic: Are there ways to share your creation other than the website?

Hi,
We're tyring to embed scratch projects on our school's sharepoint. This seems to work ok, except that the whole thing freezes when it tries to play a sound.
We have downloaded & installed soundbank.gm.
We also tried adding it as a parameter in the applet object:
<param name="sound" value="soundbank.gm">
But still no joy...
Are we being really stupid?
Any pointers would be very welcome!

Many thanks in advance,
DAF

Last edited by dfraser (2008-02-01 06:58:11)


DAF

Offline

 

#44 2008-02-01 07:55:52

redware
Scratcher
Registered: 2007-05-21
Posts: 92

Re: ITopic: Are there ways to share your creation other than the website?

dfraser wrote:

Hi,
We're tyring to embed scratch projects on our school's sharepoint. This seems to work ok, except that the whole thing freezes when it tries to play a sound.
We have downloaded & installed soundbank.gm.
We also tried adding it as a parameter in the applet object:
<param name="sound" value="soundbank.gm">
But still no joy...
Are we being really stupid?
Any pointers would be very welcome!

Many thanks in advance,
DAF

Are you using IIS ? If so then configure the site and under the HTTP HEADERS section select the MIME TYPES and add the following:

.gm application/octet-stream
.sb application/x-java-applet

Don't forget also to add the relevant files into the folder on the web server (scratchappler.jar and soundbank.gm).

Offline

 

#45 2008-02-04 08:16:05

dfraser
Scratcher
Registered: 2008-02-01
Posts: 3

Re: ITopic: Are there ways to share your creation other than the website?

redware wrote:

Are you using IIS ? If so then configure the site and under the HTTP HEADERS section select the MIME TYPES and add the following:

.gm application/octet-stream
.sb application/x-java-applet

Don't forget also to add the relevant files into the folder on the web server (scratchappler.jar and soundbank.gm).

Many thanks.
I'll have my tech minions check it out & see if it does the job!
Cheers,
DAF


DAF

Offline

 

#46 2008-02-05 05:49:27

dfraser
Scratcher
Registered: 2008-02-01
Posts: 3

Re: ITopic: Are there ways to share your creation other than the website?

redware wrote:

Are you using IIS ? If so then configure the site and under the HTTP HEADERS section select the MIME TYPES and add the following:

.gm application/octet-stream
.sb application/x-java-applet

Don't forget also to add the relevant files into the folder on the web server (scratchappler.jar and soundbank.gm).

Hmmm.. all of that is in place and configured as it should be.
Will keep playing and see if we can figure it out.
Thanks anyway.


DAF

Offline

 

#47 2008-02-15 19:32:13

minnvikings26
Scratcher
Registered: 2008-02-14
Posts: 22

Re: ITopic: Are there ways to share your creation other than the website?

when i click on the share link and click embed, the space that should contain the code for embedding is empty.  can anyone help me out?

Offline

 

#48 2008-02-16 12:34:10

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: ITopic: Are there ways to share your creation other than the website?

minnvikings26 wrote:

when i click on the share link and click embed, the space that should contain the code for embedding is empty.  can anyone help me out?

For some reason I think it only works in Firefox, Internet Explorer and Opera. But not in Safari. Are you using Safari?


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#49 2008-02-18 02:26:23

minnvikings26
Scratcher
Registered: 2008-02-14
Posts: 22

Re: ITopic: Are there ways to share your creation other than the website?

yes i was (idk why) im on firefox now so I'll check.  thanks.

Offline

 

#50 2008-03-06 23:24:39

jjjrmy
Scratcher
Registered: 2008-03-06
Posts: 1

Re: ITopic: Are there ways to share your creation other than the website?

is there  a way to convert them to .swf?

[edited by Jens: removed user's personal E-Mail address]

Offline

 
  • Index
  •  » Advanced Topics
  •  » ITopic: Are there ways to share your creation other than the website?

Board footer