Amiga.org

Amiga computer related discussion => General chat about Amiga topics => Topic started by: EDanaII on December 15, 2006, 09:18:57 PM

Title: A Small Gift to the Community.
Post by: EDanaII on December 15, 2006, 09:18:57 PM
And by small, I mean "little" as in "practically nothing." ;-)

Some time ago, while updating my skills, I was asked to write a Java program that "bounced a ball of the sides of the screen." Being somewhat bored with the class I actually did more than was asked for. The result is a sensless little program I call JBoing, which I wrote in honor of the good ol' daze of Amiga.

So, for any who are interested, here's my minor tribute to the Amiga of long ago: JBoing (http://edwardgdanaii.info:7762/programs/JBoing/JBoing322420.html).

I hope you all enjoy it for the whole 5 that seconds it amused me. :-)

And, sorry guys, but it is a Java app, so you must have a Java enabled browser. :-( Yea, I hate reality too...

Oh, and even though the instructions say "click anywhere in the gray area to activate" there's a small bug in the program (related to the virtual machine, I think), so, instead, "click anywhere in the upper half of the grey area to activate it."

In any case, enjoy,
Ed.
Title: Re: A Small Gift to the Community.
Post by: keropi on December 15, 2006, 10:07:15 PM
tried in on XP-SP2 with sun java installed, in both latest opera and IE 6.x , it does not load... some bytecode error...
Title: Re: A Small Gift to the Community.
Post by: tomswift on December 15, 2006, 10:11:56 PM
Works fine here with Firefox webbrowser.  Thanks for the trip down memory lane.
Title: Re: A Small Gift to the Community.
Post by: skurk on December 15, 2006, 10:14:49 PM
Didn't work here either (MacOSX 10.4.8) :(
Title: Re: A Small Gift to the Community.
Post by: AmigaMance on December 15, 2006, 10:24:29 PM
 Does it work with JAmiga? */me runs*
Title: Re: A Small Gift to the Community.
Post by: deBrun on December 15, 2006, 10:55:47 PM
Like... kewwwwwl !

:D

Worked on FFox & IE6 perfectly!

Thanks, & fine work!  I bet Cloanto might like this or Amikit for their websites.
Title: Re: A Small Gift to the Community.
Post by: InTheSand on December 15, 2006, 11:16:40 PM
Heh!

Cool! Works fine on Firefox 2 / Ubuntu 6.10 Edgy.

How about making the "Workbench" work? Maybe you could expand it to include other old classics like the Juggler, especially as you have the icons for them!!!

And when does the GPLed version appear with source?!  :-)

 - Ali
Title: Re: A Small Gift to the Community.
Post by: beller on December 15, 2006, 11:55:33 PM
Quote

skurk wrote:
Didn't work here either (MacOSX 10.4.8) :(


Worked dandy on my PowerMac Dual G5 with 10.4.8, I'm using Firefox.  Perhaps you're using Safari?

@edanall

Great job dude!  Now if the gadgets worked this be a total Amiga experience!  Nice
Title: Re: A Small Gift to the Community.
Post by: bhoggett on December 16, 2006, 01:42:32 AM
Oh, the memories.  :-)

(It does work folks, but it can take a while to load up.)
Title: Re: A Small Gift to the Community.
Post by: Argo on December 16, 2006, 03:20:17 AM
Worked for me with WinXP Pro SP2 in Opera 9.02.
Title: Re: A Small Gift to the Community.
Post by: guest3217 on December 16, 2006, 04:03:06 AM
 :lol:

That's good!

Title: Re: A Small Gift to the Community.
Post by: EDanaII on December 16, 2006, 04:38:21 PM
I'm glad you guys enjoyed it. :-)


@ Those for whom the applet worked:

Did the Workbench load initially? Or did it appear only after you "activated" the applet? That was the bug I was refering too. I'm now beggining to suspect that it's related to the browser cache rather than the JVM.


@ InTheSand

The sources are available, all one has to do is ask. I'll put them up on my website eventually.


@ InTheSand & Beller

As to expanding it. I'd love too, had I the time, but... well, you get the idea. :-)


@ Bill Hoggett

Greetings Bill! Long time, no read. :)

In case you don't remember, I used to be pretty active on CSA.Amiga, back during the "Gateway Daze." :)

Ed.
Title: Re: A Small Gift to the Community.
Post by: AJCopland on December 16, 2006, 05:27:23 PM
:-D i like it, nice work!
Title: Re: A Small Gift to the Community.
Post by: Darrin on December 16, 2006, 05:41:31 PM
LOL.  Nice!  That takes me back.  Thanks Ed.
Title: Re: A Small Gift to the Community.
Post by: Karlos on December 16, 2006, 05:44:14 PM
Quote

----------------------------------------------------
java.lang.UnsupportedClassVersionError: Amiga (Unsupported major.minor version 49.0)

   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.access$100(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(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)


Fx 1.5.0.8, Win2K
Title: Re: A Small Gift to the Community.
Post by: avanham on December 16, 2006, 06:03:57 PM
Great!  I especially like the screendrag

Under Mac OS X you must use Firefox.  If you use Safari or Omniweb it doesn't work
Title: Re: A Small Gift to the Community.
Post by: SyrTran on December 16, 2006, 07:44:39 PM
It worked mostly fine for me - Seamonkey 1.0.6, Java 1.5.0_09.  "Mostly", because the WB screen didn't show until I clicked on the upper half, and also because, when I clicked in the upper left corner, Boing didn't end and return me to Workbench. ;-)

I just compared it to the original on my 3000.  Very good work!
Title: Re: A Small Gift to the Community.
Post by: EDanaII on December 17, 2006, 06:55:35 PM
Yea, like I mentioned before, the Workbench doesn't appear to load right away, but it looks like it does after it gets cached. I may try something like loading the gif before the applet and see if that makes any difference.


@ Karlos

They best I can tell from all of that is that the "Amiga" class, which is the "main" class that runs the entire applet, is not getting loaded. Unfortunately, I can't tell you why that's occuring. Have you checked your browser settings, or even tried a new browser?

Ed.