Java2Script (J2S) Pacemaker
Java2Script (J2S) Pacemaker provides an Eclipse Java to JavaScript compiler plugin and an implementation of JavaScript version of Eclipse Standard Widget Toolkit (SWT) with other common utilities, such as java.lang.* and java.util.*. You can convert your SWT-base Rich Client Platform (RCP) into Rich Internet Application (RIA) by Java2Script Pacemaker.
Using Java2Script Pacemaker
Using Java2Script Pacemaker won't require any extra APIs learning. All you have to do is to develop your Java applications in Eclipse as normal. Developing your application as "Java Application", you may debug into sources line by line by using Eclipse's debugging, and you may design your SWT dialogs by SWT UI designer, and you may do necessary refactoring, and you may format your codes and you may ..., you can do anything you are familiar with Eclipse JDT.
After you finishing your Java application, then you can "Enable Java2Script Compiler" to convert your RCP application into RIA. For more technical details, please read Getting Started Tutorials.
After something like "Bang!", you will get the your RIA running inside browsers.
After testing the application in standalone browser outside Eclipse platform, you can also deploy the RIA to server (Manually by coping *.js, *.css and *.html files). Then you will have both RCP and RIA!
Java2Script Features
-
Well-integrated with Eclipse
As plugin extending Eclipse JDT, Java2Script is integrated with Eclipse
platform seamlessly. You do not need to worry about any thing about
compiling to JavaScript, and you can run the application inside Eclipse
platform. And Java2Script Pacemaker will try to keep pace with the latest
version Eclipse.
-
Support Java 5.0 besides Java 1.4
Besides Java 1.4, you can also programming in Java 5.0 syntax. There are
no limits on what you can do in your Java.
-
Cross browser support
Currently, IE, Firefox/Mozilla, Opera, are supported for Java2Script's SWT.
You do not have to worry about the difference of different browsers. As
the Java2Script's SWT library do all the necessary wrappings for you.
-
Native JavaScript support by Javadoc
You can add extra "@j2s*" Javadoc to to write necessary native
JavaScript codes. This is considered as advanced options for converting
those JNI codes. You can implement the those JNI fragments by using
"@j2s*" for JavaScript version. For more details, please read
Tutorial of J2S in Eclipse (7): Advanced Programming on J2S -- @j2s* and
others
-
AJAX support for both Java and JavaScript
Java2Script recommends a way to develop AJAX application for both Java and
JavaScript. Java2Script bundles with an AJAX library for both Java and
JavaScript. So the AJAX application developed by Java application in the
recommended way can be exported to JavaScript directly. For more details,
please read Tutorial of J2S in Eclipse (6): How to Use ajax.* -- A Simple
RSS Reader
Come to more detail: http://j2s.sourceforge.net/