Re: Clojure Applets: Tutorial

2009-10-15 Thread indy
The applet seems to work fine on my PowerPC Mac (10.4.11) with Java 1.5.0_19 On Oct 15, 12:50 pm, Andreas Wenger wrote: > Hi Jon, > > "Applet net.n01se.Tree" ist just an example I found on the web. My new > demo code can be found > here:http://www.xenoage.com/extern/clojurebook/applet2/cljapp.h

Re: Clojure Applets: Tutorial

2009-10-15 Thread Andreas Wenger
Hi Jon, "Applet net.n01se.Tree" ist just an example I found on the web. My new demo code can be found here: http://www.xenoage.com/extern/clojurebook/applet2/cljapp.html But as already said, Java 5 doesn't like it (see error message two posts above) and tells me that the bytecode generated by the

Re: Clojure Applets: Tutorial

2009-10-15 Thread Jon
Hi, I get "Applet net.n01se.Tree notinited" in the status bar on my Mac. Did you compile for Java 5? /Jon On Oct 15, 11:36 am, Andreas Wenger wrote: > Fantastic news: > > - Clojure applets do not have to be signed, when reflection can be > avoided (by type hints and so on) > - Java code is ind

Re: Clojure Applets: Tutorial

2009-10-15 Thread Andreas Wenger
However, compatibility with Java 5 is lost again. Java 5 plugin shows the following error message when loading the applet (even when Clojure compiler was started with Java 5, but I guess, this does not matter anyway): Java Plug-in 1.5.0_19 Verwendung der JRE-Version 1.5.0_19 Java HotSpot(TM) Clie

Re: Clojure Applets: Tutorial

2009-10-15 Thread Andreas Wenger
Fantastic news: - Clojure applets do not have to be signed, when reflection can be avoided (by type hints and so on) - Java code is indeed not needed (thanks @ rob) I've updated the tutorial accordingly. Here is another Clojure applet which works without Java code and without signing: http://cho

Re: Clojure Applets: Tutorial

2009-10-14 Thread rob
This is great, thanks for posting this! I did something just for my own testing recently, and I have something more useful that is half- completed, but here is a proof-of-principle clojure app I made. You may want to take a look at this as it does not require writing any Java, it is pure Clojure

Re: Clojure Applets: Tutorial

2009-10-13 Thread Jon
Yes, now it works on my Mac. Good! ;-) /Jon On Oct 13, 4:46 pm, "andi.xeno...@googlemail.com" wrote: > Perhaps Java 5 was running. I forgot to compile also for Java 5 (now > updated in tutorial and in demo).Could you please try again? > So far I know from two MacOS X 10.6 where it works and two

Re: Clojure Applets: Tutorial

2009-10-13 Thread Andreas Wenger
> You might want to try clojure-slim.jar, which gets built > alongside clojure.jar, and is about 500KB. Good idea, thanks. I'll add it. Another idea: Since the applet itself needs not to be signed, it would be great if there is an "official" precompiled clojure.jar which is certified from a ce

Re: Clojure Applets: Tutorial

2009-10-13 Thread pmf
In your article, you mention the problematic size of 1.4MB of clojure.jar. You might want to try clojure-slim.jar, which gets built alongside clojure.jar, and is about 500KB. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: Clojure Applets: Tutorial

2009-10-13 Thread andi.xeno...@googlemail.com
Perhaps Java 5 was running. I forgot to compile also for Java 5 (now updated in tutorial and in demo).Could you please try again? So far I know from two MacOS X 10.6 where it works and two 10.5 where it fails. --~--~-~--~~~---~--~~ You received this message because

Re: Clojure Applets: Tutorial

2009-10-13 Thread DavidF
It does work in Mac OS X 10.6.1 with Safari 4.0.3. I see a bordered yellow box with "Hello World!" I'll try it later when I'm near a 10.5 box and see if I can figure out the problem. On Oct 13, 8:35 am, "andi.xeno...@googlemail.com" wrote: > I could test only on Windows, Linux and Solaris (no

Re: Clojure Applets: Tutorial

2009-10-13 Thread andi.xeno...@googlemail.com
I could test only on Windows, Linux and Solaris (no problems on these systems). Unfortunately, I have no Mac where I could test it. Perhaps a Mac user can identify the problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Clojure Applets: Tutorial

2009-10-13 Thread Jon
Hi, On Oct 13, 11:15 am, "andi.xeno...@googlemail.com" wrote: > Hi, > > since I found only questions about applets written in Clojure but not > really answers, I decided to write a small tutorial in the Clojure > wiki:http://en.wikibooks.org/wiki/Clojure_Programming/Examples/Creating_an... > App

Clojure Applets: Tutorial

2009-10-13 Thread andi.xeno...@googlemail.com
Hi, since I found only questions about applets written in Clojure but not really answers, I decided to write a small tutorial in the Clojure wiki: http://en.wikibooks.org/wiki/Clojure_Programming/Examples/Creating_an_Applet Applet demo: http://www.xenoage.com/extern/clojurebook/applet/cljapp.htm