Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
My first Greenfoot/Java simulation
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default My first Greenfoot/Java simulation - 07-04-2008, 03:18 PM

In case anyone is interested, my first Greenfoot simulation is online at http://greenfootgallery.org/scenarios/173

I mention this because Greenfoot gives us a 2D preview of what Alice 3.0 can be in 3D once we get rid of the pseudo-language, and the full power of Java is exposed to the programmer.

By the way, your browser must support Java 1.5 or later for this applet to run in your browser.

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free Scratch tutorials: http://www.dickbaldwin.com/tocHomeSchool.htm
Free Java/C#, etc. tutorials: http://www.dickbaldwin.com/toc.htm
   
Reply With Quote
Old
lanceA
Guest
 
Status:
Posts: n/a
Default 07-10-2008, 10:52 AM

I'm glad to see others have 'discovered' Greenfoot, Dick. Like all software it has it's place in the grand scheme of learning.
   
Reply With Quote
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default 07-10-2008, 12:16 PM

Quote:
Originally Posted by lanceA View Post
I'm glad to see others have 'discovered' Greenfoot, Dick. Like all software it has it's place in the grand scheme of learning.
Here is a link to my new improved Greenfoot scenario about spiders:

http://greenfootgallery.org/scenarios/181

If nothing else, it's a lot of fun and it uses standard Java.

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free Scratch tutorials: http://www.dickbaldwin.com/tocHomeSchool.htm
Free Java/C#, etc. tutorials: http://www.dickbaldwin.com/toc.htm
   
Reply With Quote
Need a JDK (formerly SDK), not just the JRE
Old
DrJim
Guest
 
Status:
Posts: n/a
Default Need a JDK (formerly SDK), not just the JRE - 07-10-2008, 04:37 PM

I'd also strongly recommend anyone interested read the tutorial at http://www.greenfoot.org/doc/tutorial/tutorial.html . This will make it clear, among other things, that you need version 1.5 or higher of the full Java Development Kit (i.e., JDK 1.5) for "Java 5" and not just version 1.5 (or higher) of the Java Run Time Environment (i.e., JRE 1.5).
   
Reply With Quote
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default 07-10-2008, 06:26 PM

Quote:
Originally Posted by DrJim View Post
I'd also strongly recommend anyone interested read the tutorial at http://www.greenfoot.org/doc/tutorial/tutorial.html . This will make it clear, among other things, that you need version 1.5 or higher of the full Java Development Kit (i.e., JDK 1.5) for "Java 5" and not just version 1.5 (or higher) of the Java Run Time Environment (i.e., JRE 1.5).
I may be wrong about this, and I have no way of testing, but it is my impression that in order to download and run the online applet, all you need is for your browser to be v1.5 or later compatible. I don't believe that requires the JDK; the JRE should suffice.
   
Reply With Quote
Huh?
Old
DrJim
Guest
 
Status:
Posts: n/a
Question Huh? - 07-11-2008, 03:39 PM

Quote:
Originally Posted by DickBaldwin View Post
your browser to be v1.5 or later compatible ... the JRE should suffice.
Whatever does that mean??

Attached are three screenshots.

1. What I get when I try to view the spiders
2. The directory where JRE 1.5.x is
3. The control panel - which doesn't specifically show JRE 1.5.

(I "canceled" updates on the last since they didn't seem to affect Alice performance - but did use up memory like crazy. - earlier versions were not deleted.)
Attached Images
File Type: jpg response.JPG (16.5 KB, 430 views)
File Type: jpg directory.JPG (13.1 KB, 430 views)
File Type: jpg Control Panel Listing.JPG (6.6 KB, 426 views)
   
Reply With Quote
Browser compatible with Java 1.5 or later
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default Browser compatible with Java 1.5 or later - 07-11-2008, 04:03 PM

When you open the Java Console in your browser, you should see something like the attached image:

Note the information at the very top of the attachment.

When I first started working with Greenfoot, I discovered that I could run Greenfoot applets either locally or from the website using IE but couldn't run them in Firefox.

When I finally tracked down the problem, I discovered that even though Firefox had updated itself many times, and even though Java 1.6 was installed on my computer, Firefox was still running Java 1.4.

After much effort trying to force Firefox to update itself to Java v1.6, I discovered an old copy of Java v1.4 on my computer. When I deleted it and then tried to run a Greenfoot applet, Firefox updated itself to v1.6 and everything has worked well since.

It is also necessary to have Java applets enabled in the browser for any Java applet to be executed.

Hope this helps,
Dick Baldwin
Attached Images
File Type: jpg junk1.jpg (32.3 KB, 430 views)
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 07-12-2008, 12:12 PM

Quote:
Originally Posted by DickBaldwin View Post
Hope this helps,
It did - at least to the extent I can now view the video - and you are correct only the JRE is needed. However, apparently it has to be installed as a stand-alone - the embedded version that Alice 2.2 uses wasn't sufficient. A download of the current version (JRE 1.6-7) from the Sun site does seem to work - as usual with Java stuff I'm never 100% sure.

As an added note, the recommendation for anyone interested to read the tutorial wasn't just for this issue. It is quite nicely written (for a computer tutorial) and seems quite informative.
   
Reply With Quote
My first Greenfoot/Java simulation
Old
dang
Guest
 
Status:
Posts: n/a
Default My first Greenfoot/Java simulation - 08-31-2008, 10:15 AM

> as usual with Java stuff I'm never 100% sure.

If you'd like to be 100% sure, point your browser of choice to "http://java.com" -> "Do I have Java?" link and you'll get to something that will report the Java Runtime Edition your browser is running.

Another option is http://www.java.com/en/download/help/testvm.xml

For what it's worth, the Java runtime has been updated in Java SE 6 Update 10 (http://java.sun.com/javase/downloads/ea/6u10/6u10RC.jsp) to address issues that have come up over 12 years of runtime Java stuff. In particular, the plug-in has received quite a bit of attention (https://jdk6.dev.java.net/plugin2/) and now allows you to drag applets out of your browser on to your desktop as stand alone programs among other things.

Hopefully that is helpful to you.

Best regards,

-- DanG
   
Reply With Quote
Greenfoot for beginners
Old
alicefan
Guest
 
Status:
Posts: n/a
Default Greenfoot for beginners - 12-16-2008, 12:07 PM

This is a very helpful thread!

thanks.

Greenfoot's documentation is pretty hard to follow for beginners. Here is something on kidslike.info that tells you how to change the size of the background.
http://www.kidslike.info/choosing_th...reenfoot_world
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.