This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-11-24 00:27:16

rico
Scratcher
Registered: 2007-05-22
Posts: 47

Server's Java Requirements & MIME type for Scratch v1.3 files

Would anyone mind sharing the server Java Requirements & MIME type for Scratch v1.3 files? I am troubleshooting why Scratch files created with v1.3 do not run on our IIS 6.0 server. Our files created in Scratch v1.2 work fine, but we upgraded to Scratch v1.3 and none of the files our students have created work on our server. One solution would be for us to go back to Scratch v1.2, I guess, but the preferred solution is to get Scratch v1.3 files running on our server. The current server settings are as follows:
=================
Java Runtime Versions: 1.6.0_02 and 1.6.0_03 (both enabled)
MIME Type: .sb=application/x-java-applet
                 .gm=application/octet stream
=================

Offline

 

#2 2008-12-01 20:32:23

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

Re: Server's Java Requirements & MIME type for Scratch v1.3 files

I am not sure I understand your question. Scratch projects can run on two places:
a) On your browser using the Java plugin.
b) On the Scratch desktop application.

Scratch projects do not run on the Server. It might help if you post a screenshot showing how a project is not working.

Also, if you're referring to running on your browser, try checking the output of the Java virtual machine console as it might give you some errors that can help you debug the problem.

The MIME type has not changed from 1.2 to 1.3.1


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

Offline

 

#3 2008-12-08 07:05:36

rico
Scratcher
Registered: 2007-05-22
Posts: 47

Re: Server's Java Requirements & MIME type for Scratch v1.3 files

Thank you for the reply, Andres. I'm sorry my question isn't clear. Some time back I posted a question on this board about how to get Scratch files running on our school intranet server (which I guess is not correct, I guess I meant running in browsers when hosted on our server), and you tried your best to help. At some point, I had the idea to check the MIME types on my server, and when I added the .sb extension, that was the magic bullet that got the Scratch files (which were hosted on my intranet server) to run in our browsers when accessed on my server. So we had been happily creating Scratch files in Scratch, posting them on our school intranet server, and enjoying them in our browsers. Then along came Scratch v1.3. We upgraded Scratch on our school's computers, and the students created Scratch files in Scratch, but when we posted those files on our school's intranet server, they didn't run in our browsers. I'll try to explain again if I've confused the issue even futher, but am I getting warmer in describing the problem? Right now, I see my solution as uninstalling Scratch v1.3 and reinstalling whatever version we were using before (1.2.1, I think).

PS - If we post one of our v1.3 files on the scratch.mit.edu server, it runs just fine in our browsers, but when we post the same Scratch file on our intranet server, it won't run in our browser... the page opens in the browser and the blue "loading" line goes arcross all the way from left to right, and then nothing happens... nothing, we just have the loading screen with the blue bar, no Scratch program ever appears.

PPS - I realize this may not be making any sense, and there may be no way you'll be able to help, but I don't know who else to ask.

Last edited by rico (2008-12-08 07:31:19)

Offline

 

#4 2008-12-09 15:27:04

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

Re: Server's Java Requirements & MIME type for Scratch v1.3 files

Our Apache web server config file has this:
AddType application/x-scratch-project sb


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

Offline

 

#5 2008-12-09 16:04:44

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Server's Java Requirements & MIME type for Scratch v1.3 files

Hmm...

The ScratchApplet is also stored on the server, so I am wondering...

Is the Applet upgraded to the newest version - v31?

The ScratchApplet is updated all the time. When Scratch 1.3 was released, there where multiple new releases of the Java applet. (from v27 to v31 i think). You can see the version number of the applet in the upper right corner.

The old applet is not able to read scratch 1.3 projects, so that would describe your problem...

I don't know a lot about all these stuff but I try to help  big_smile

Joren


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#6 2008-12-17 08:17:04

rico
Scratcher
Registered: 2007-05-22
Posts: 47

Re: Server's Java Requirements & MIME type for Scratch v1.3 files

Thank you very much, Joren. I think you may have hit the nail on the head. When I view my Scratches hosted on our server, the left corner of the applet shows v17, but when I view the same Scratch hosted on the Scratch server, the left corner of the applet shows v31. That's got to be it. When I get to school tomorrow, I will try to figure out what this all means and let you know what happens. But I'm a little worried that if I upgrade (after I figure out how), our older Scratches hosted on our server may no longer run. I will give you a full report, and again, THANK YOU VERY MUCH!!!

Last edited by rico (2008-12-17 08:19:09)

Offline

 

#7 2008-12-17 12:22:19

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Server's Java Requirements & MIME type for Scratch v1.3 files

rico wrote:

Thank you very much, Joren. I think you may have hit the nail on the head. When I view my Scratches hosted on our server, the left corner of the applet shows v17, but when I view the same Scratch hosted on the Scratch server, the left corner of the applet shows v31. That's got to be it. When I get to school tomorrow, I will try to figure out what this all means and let you know what happens. But I'm a little worried that if I upgrade (after I figure out how), our older Scratches hosted on our server may no longer run. I will give you a full report, and again, THANK YOU VERY MUCH!!!

The new applet is backwards compatible (isn't it Scratch team?  smile  )

The older scratch  Projects stored on your server should work perfectly with the newest Scratch Applet (v31)


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#8 2008-12-17 19:38:22

rico
Scratcher
Registered: 2007-05-22
Posts: 47

Re: Server's Java Requirements & MIME type for Scratch v1.3 files

Three cheers for the Scratch Forums! YES, YES, YES, putting the current version of  ScratchApplet.jar (v3.1) on our school intranet server did indeed do the trick. I am very pleased to report 100% success! Scratch projects created in v1.3 and hosted on our school intranet server now run perfectly in our browsers, as well as our older Scratch projects that were created in Scratch v1.2. Thank you very much, andres for getting me to restate my problem clearly, and thank you very much, joren for coming through with a solution! The solution seems simple, but I never would have thought of it myself. Never. I get it now, though... whenever there is a Scratch upgrade, there may be a ScratchApplet upgrade as well. Since we're hosting our Scratch projects on our school intranet server, when we update Scratch in the future, I will be sure to update the ScratchApplet on the server also. I'd like to take a minute to let you know how much success we are having with Scratch here at my elementary school. I keep a computer lab open during lunch/recess, and kids RUSH to the lab to work on their Scratch projects. I've been enjoying this so much that I have made Scratch presentations at our District-wide in-service trainings, and Scratch is speading through our schools, and other schools are reporting similar successes.

Offline

 

Board footer