Java2Script Update v20100601

Java2Script 2.0 update v20100601 has been released. To download latest released files, please visit

1. Added support of Eclipse 3.6.* Helios, and earlier Eclipse
2. Java2Script sources repository moved to Google Code at
3. Sebastian Gurin joined Java2Script and opened source YUI4Java project ( ), which is based on technologies of Java2Script compiler
4. Added SimpleStore API for local storage
5. Added support of Google Chrome browser
6. Added web mail client demo ( )
7. Improved web instant messenger demo ( )
8. Added early support of JFace ( )
8. Other improvement and bugfixes

Java2Script Feature List:

Java2Script Core
1. Object oriented JavaScript simulator is introduced
2. JavaScript ClassLoader is built inside
3. Eclipse JDT based Java to JavaScript compiler, support Java 1.4 and Java 5 features, including generic, enums, static imports, enhanced loops
4. Support incremental building for Java projects
5. Support Hotspot JavaScript swapping for debugging
6. Support most classes in java.lang.*, java.utils.* and others packages
7. Support native JavaScript through @j2s* Javadoc in Java sources
8. Support creating Java2Script projects by wizard, including Servlet project
9. Support Eclipse 3.3.*, 3.4.*, 3.5.* and 3.6.*

Java2Script SWT
1. Eclipse SWT 3.1 API is ported for JavaScript in modern browsers, Firefox, Google Chrome, Internet Explorer, Opera, Safari
2. Desktop and window manager are built inside
3. Support UI blocking fow SWT’s Shell and Dialog
4. Support SWT deffered layout
5. Support detecting font size change in Firefox

Java2Script AJAX
1. HttpRequest/AJAX is introduced for both Java and JavaScript
2. Simple RPC API is introduced to call back Java server, which supports Cross Site Scripting
3. Simple and Compound Pipe API is introduced to setup Comet connection to server.
4. Support dynamic class loading for both Java and JavaScript
5. Support Java reflection (early implementation)
6. Support Simple Store API for local storage

Java2Script JUnit
1. Support JUnit tests both Test Case and Test Suite in text mode.

Java2Script Example
1. Web instant messenger services, support online web Gtalk (Google Talk), MSN (Windows Live Messenger), Yahoo! Messenger, AIM/ICQ, Jabber/XMPP. Please visit , or
2. Web mail client services, support online web mail, including Gmail, Hotmail, Yahoo! Mail, AOL Mail, and other IMAP/POP3 & SMTP providers. Please visit , or
3. SWT Tetris Game. Please visit
4. SWT Control Examples. Please visit
5. Advanced Image Viewer based on YUI4Java. Please visit
6. Early JFace demo. Please visit

For more demos, please visit:

For more detailed feature description, please visit Java2Script homepage: , or

This entry was posted in Java2Script News. Bookmark the permalink.

18 Responses to Java2Script Update v20100601

  1. Hello Zhour Renjian. Good work!. I think you missed an important (for me) feature introduced : the window["j2s.object.native"] . When I find free time, I will write an article regarding this new j2s modality and comments about working with native objects from java code


  2. okayliving says:

    I would like to say, nice webpage. Im not sure if it has been addressed, however when using Firefox I can never get the entire page to load without refreshing alot of times. Could just be my modem.

  3. John Carlson says:

    I haven’t used Java2Script. Looks interesting. Could you port something like JFreeChart to JavaScript? That would be really useful! I know that there are a lot of JavaScript and HTML5 charting libraries out there, but JFreeChart is very mature, feature rich, etc.

  4. Zhou Renjian says:

    @John Carlson
    It seems that JFreeChart requires graphic context heavily. Java2Script is still week on drawing. So there is no Java2Script JFreeChart in the near future.

  5. Zhou Renjian says:

    @Sebastián Gurin
    OK, I will remember to enable window["j2s.object.native"] in the next release.

  6. Great goods from you, man. I’ve understand your stuff previous to and you are just too great. I actually like what you’ve acquired here, certainly like what you’re stating and the way in which you say it. You make it enjoyable and you still care for to keep it sensible. I can not wait to read far more from you. This is actually a tremendous web site. All the best,

  7. Coral Monda says:

    Thank you for every other informative website. Where else could I am getting that type of information written in such an ideal means? I have a challenge that I am simply now running on, and I have been at the glance out for such information.

  8. I do accept as true with all the ideas you’ve offered in your post. They’re very convincing and will certainly work. Nonetheless, the posts are too short for newbies. Could you please extend them a little from next time? Thank you for the post.

  9. Hi there colleagues, how is the whole thing, and what you wish for
    to say on the topic of this article, in my view its truly amazing in favor of me.

  10. esta muy bien porfabor conectenme

  11. Just about every lady ought to measure her bra size at least as
    soon as per year adolescents will need to measure themselves (or get professionally measured) every single time they buy a bra, since their bodies are modifying
    so rapidly. Taking your daughter out for ice cream or to her favorite fast food restaurant
    can help celebrate this new milestone. Karyn Weatherby who said that ogling at busty beauties is equivalent to a 30-minute aerobics workout.

    my webpage … measuing cup size

  12. Hey there, You have done an excellent job. I will definitely digg it and
    personally recommend to my friends. I am sure they’ll be benefited from this site.

    my weblog; Business Coaching – -

  13. We’re a gaggle of volunteers and starting a brand new scheme in our community.
    Your website provided us with useful info to work on.
    You have performed a formidable job andd our whole
    neighborhood willl likely bee thankful to you.

    my site – seo Berkhamsted

  14. This all then ties in with the traditional methods of
    security which will include camera systems, alarm systems
    and fire systems. In summary: The Pros outweigh the Cons of Computer Security Systems; therefore, it is of utmost importance to use
    such sytems at the office (on networks) as well as at home.
    The audit should check whether all software have
    the latest patch installed, and whether the system configuration allows the software to detect and
    prompt the user to install the latest patches automatically.

  15. Thanks for another excellent article. Where else could anyone get that type of info in such an ideal way of writing? I ave a presentation next week, and I am on the look for such information.

  16. Patricia Sim says:

    The meeting of two personalities is like the contact of two chemical substances: if there is any reaction, both are transformed.

  17. Here is a great body of our Jewish citizens from whom have sprung men of genius in every walk of our varied life; men who have conceived of its ideals with singular clearness; and led enterprises with sprit & sagacity… They are not Jews in America, they are American citizens.

  18. Great internet site! It looks extremely expert! Maintain the good job!|

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>