The Source for Java Technology Collaboration
User: Password:



Vincent Brabant

Vincent Brabant's Blog

Test your Java code on-line !!!

Posted by vbrabant on April 23, 2005 at 05:50 AM | Comments (2)

Recently, by reading JavaRSS, I discovered a very nice site that permits us to type and run piece of Java code. That site is Zamples

But what is very nice is that you have possibility to choose the JDK. So, you can decide to run your code by using JDK 5.0, but also by usng JDK 6.0.

It's really simple to use.

Hereunder a screenshot of a little java class that display the version of the JRE, but also the parameters given as input.

Please note that signature of the main method is public static void main(String... args) {}

If you compile it with an old JDK, it will never compile. That new notation has been introduced with Tiger (JDK 5.0) zamples.png

Note also that they are using build 13 of the JRE 6.0.

I hope they will update the used JDK with the last build available on java.net. That would be really great.


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • We would like to fully automate the update process using a Gentoo ebuild script. If anyone reading this would like to contribute such a script, we'd be delighted to run it as a cron job every night. That way Zamples would always be guaranteed to have the latest and greatest JDK 6 version for everyone to play with.

    Mike
    mslinn at zamples.com

    Posted by: mslinn on May 16, 2005 at 09:13 AM

  • OK, we've automated the updating of our JDK 6 support. Every 24 the public Zamples server checks for a new update of JDK 6, downloads and installs it if available. Have fun, and share your discoveries with the community!

    Mike

    Posted by: mslinn on May 25, 2005 at 10:14 PM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds