Archive for the ‘Java2Script News’ Category

Java2Script 2.0.0 Released!

Saturday, November 29th, 2008

We are very pleased to announce that Java2Script 2.0.0 release is available now. Please visit http://j2s.sourceforge.net/ for updates.

Comparing to previous version, 1.0.0, Java2Script 2.0.0 now supports both Eclipse 3.3.* and Eclipse 3.4.*. And Java2Script 2.0.0 has a new feature named “SWT Desktop“, providing Tray widget, task bar and shortcut dashboard. And there is Simple and Compound Pipe APIs to setup Comet connection back to server. Besides these new features, we have fixed lots of bugs in Java2Script compiler, Java core library and SWT library. And we add another demo: an SWT Tetris game.

Java2Script 2.0.0 is much more stable and it is ready for product. WeBuzz.IM is one of products using Java2Script 2.0.0. WeBuzz.IM provide services to those users whose Gtalk/MSN/Y!Messenger/AIM being blocked by firewalls. Compound Pipe technology is used to provide multiple IM login using only one connection, and Java2Script’s SWT desktop provides familiar desktop user experience for users.

And developer Sebastian Gurin joined us in Oct 2008.

Please let us know your thought.

movie rental

Appendix (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.* and 3.4.*

Java2Script SWT
—————
1. Eclipse SWT 3.1 API is ported for JavaScript in modern browsers, Firefox, Internet Explorer, Opera, Safari, Chrome
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)

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

Java2Script Example
——————-
1. Web IM services in Java2Script ( http://demo.java2script.org/ )
2. SWT Tetris Game ( http://demo.java2script.org/tetris/ )
3. SWT Control Examples ( http://demo.java2script.org/controls/ )

For more feature detailed description, please visit:
http://j2s.sourceforge.net/features.html

Java2Script Desktop

Saturday, August 23rd, 2008

You may already know Web OS, like eyeOS. In fact, those web OSs are web desktop + web services. And there are lots of web desktop styles. And here we introduce Java2Script Desktop, basing on Java2Script SWT technology:

Click to view screen shot in full mode

There are four elements on the above screen shot: Tray Bar (left upper corner), Task Bar (left side), Quick Shortcut Bar (bottom), Window.

This is a prototype design for Java2Script Desktop. Please check it out at http://izuz.net/gtalk/ . Hope to hear your feedback.

Java2Script 1.0.0 Final Release

Tuesday, October 2nd, 2007

Here comes Java2Script 1.0.0 final release!

Please visit http://j2s.sourceforge.net/ for more information.

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 loading *.js from Firefox Add-on.
10. Support Eclipse 3.1.*, 3.2.* and 3.3.*

Java2Script SWT
—————
1. Eclipse SWT 3.1 API is ported for JavaScript in modern browsers, Firefox, Internet Explorer, Opera, Safari
2. Window manager is 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. Support dynamic class loading for both Java and JavaScript
4. Support Java reflection (early implementation)

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

Java2Script Example
——————-
1. Google Talk in JavaScript ( http://demo.java2script.org/gtalk/ )
2. SWT Control Examples ( http://demo.java2script.org/controls/ )

For more feature detailed description, please visit:
http://j2s.sourceforge.net/features.html

Java2Script 1.0.0 RC Released

Saturday, September 1st, 2007

FYI:
Java2Script 1.0.0 RC Released! Please visit Java2Script’s home page for more updated information.

And Java2Script 1.0.0 Final Release will be available at the end of this September.

New and Noteworthy
==================
Java2Script Core
—————-
1. Eclipse 3.3 supported
2. Replace Java builder with Java2Script builder for Java2Script project
3. Hotspot supports for debugging.
4. Bug fixes.

Java2Script SWT
—————
1. Bug fixes.

Java2Script AJAX
—————-
1. Update Simple RPC from 1.0.0 to 1.0.1
2. Bug fixes

Java2Script Example
——————-
1. Google Talk’s Java2Script copy updated ( http://demo.java2script.org/gtalk/ ).

Now Java2Script Supports Eclipse 3.3 M7

Thursday, May 24th, 2007

Follow instructions of “setup Java2Script environment from Subversion repository“, and checkout branches 3.3 from https://j2s.svn.sourceforge.net/svnroot/j2s/branches/

Hope to hear your feedbacks.

Instantiations Donated WindowBuilder Pro to Java2Script for Development

Saturday, March 24th, 2007

Instantiations is giving back to the community by donating its products for use by developers of Open Source projects. For more information, please visit http://www.instantiations.com/company/opensource.html

Java2Script is mainly focusing on converting SWT desktop applications. And WindowBuilder Pro is sure a professional GUI designer to help developers building SWT desktop applications. As from earlier trials ( http://j2s.sourceforge.net/screenshots.html#swt-designer ), I found that SWT Designer is a great tool to help designing SWT applications. In order to improve our development efficiencies, I decided to apply for a copy of WindowBuilder Pro instead of limited trial versions. And Eric Clayberg of Instantiations is very kind to give a quick reply and is very generous to donate WindowBuilder Pro to Java2Script team.

Thanks Instantiations Inc. I think WindowBuilder Pro will help us working more efficiently and improving Java2Script plugin to a higher quality level.

Java2Script 1.0.0 M5 Released

Monday, March 19th, 2007

The long waited 1.0.0 M5 Release (Once supposed to be 1.0.0 Release Candidate) finally came.
To download and install Java2Script M5, please check
http://j2s.sourceforge.net/download.html
and
http://sourceforge.net/project/showfiles.php?group_id=155436
Regard,
Zhou Renjian
===============
1.0.0 M5 (March 16, 2007)
New and Noteworthy
==================
Java2Script Core
—————-
1. Use Apache Harmony JRE sources instead.
2. Improved ClassLoader now supports multiple threads loading from multiple sites.
3. Lots of ClassLoader bugs are fixed to make sure *.js or *.css are correctly loaded or applied.
4. ClassLoader’s class loading is notified in a half-transparent messagebar.
5. Library *.js can be loaded from Firefox Add-on.
6. Java2Script inner console’s color is now black on white.
7. Java2Script related projects can be created by wizards.
8. Java2Script compiler is refactored a little.
9. More *.js optimized configuration for Apache HTTPD server, including gzip encoding.
Java2Script SWT
—————
1. Window manager is introduced.
2. Shell’s maximizing and minimizing are improved.
3. Increasing or decreasing font size in Firefox is supported.
4. Widgets are improved.
5. SWT lazy loading is built inside.
Java2Script AJAX
—————-
1. Simple RPC protocol is modified
2. Simple RPC now supports Cross Site Script.
Java2Script Example
——————-
1. Java2Script version of Google Talk ( http://demo.java2script.org/gtalk/ )

PATCH UPDATE:

If you download or install Java2Script 1.0.0 M5 after March 21, 2007, you should ignore this patch.

If you download or install Java2Script 1.0.0 M5 before March 21, 2007, you may need to make a patch following the instructions:

Because of a not tested bug that the packed Common.z.js in plugins/net.sf.j2s.lib_1.0.0(.v510/.v520)/j2slib/org/eclipse/swt/widgets/ does not contain TabItem.js, which will result in errors of “$wt.widgets.TabItem is not a constructor” when loading Java2Script SWT application that uses TabFolder widget.

To fix up the problem, please download the patch, and unzip it, replace the old Common.z.js with the new Common.z.js.

If you also download the sources, please replace net.sf.j2s.lib/build/build.xml with the new build.xml.

If you have already installed Java2Script Firefox Add-on, please replace **Path to your Firefox profiles**/extensions/{d60b46a9-bfe3-4b22-8844-07089202e0e6}/chrome/content/
java2script/1.0.0-m5/org/eclipse/swt/widgets/Common.z.js with the new one. In Windows, Common.z.js may be in **System Drive**:\Documents and Settings\**Your Login Name**\Application Data\Mozilla\Firefox\Profiles\**Unique String**\extensions\{d60b46a9-bfe3-4b22-8844-07089202e0e6}\chrome\content\
java2script\1.0.0-m5\org\eclipse\swt\widgets\.

I feel very sorry about the inconveniences.

March 21, 2007

Java2Script’s GTalk

Friday, March 16th, 2007

I spent about three days writng an SWT based Google Talk client. And the client used Smack Jabber library, which has simple APIs. As writing the client, I kept the code compatible with Java2Script, which means that I can use the latest Java2Script daily release to pack it as a web servlet application and deploy it as rich internet application (RIA). Here is snapshot of Java2Script version of Google Talk:

Java2Script's GTalk

And here is the online Java2Script’s GTalk.

And because Java2Script’s SimpleRPC supports Cross Site Script, the above application can be loaded from any pages by adding the following HTML

Launch GoogleTalk

to your page.

Or you can just copy the above “javascript:…” part (without quotes) and paste it to address bar and go. You will get a Google Talk client (pure JavaScript) in your page (this page or other pages). This “javascript:…” part is considered as A Link An Application (ALAA).

By digging about Google Talk on Digg.com, I found that Google Talk Gadget on Google’s personalized homepage was really hitting the latest news.

Enjoy it.

Update:

The Java2Script’s Google Talk sources are available at SVN repository now:
http://j2s.svn.sourceforge.net/viewvc/j2s/trunk/demos/org.java2script.demo.gtalk/

And you can also download j2s-1.0.0-m5-gtalk.zip, unzip it and deploy gtalk.war to your Java servlet container.

Java2Script 1.0.0 M4 Released

Sunday, November 12th, 2006

After some delay, Java2Script 1.0.0 M4 now released.

New and Noteworthy
==================
Java2Script Core
—————-
1. Support org.eclipse.swt.widgets.Dialog#open in compiler level
2. Extension point for external script visitor, see
http://j2s.sourceforge.net/articles/tutorial-extended-compiler.html
3. Bug-fix of M3 compiler
Java2Script SWT
—————
1. CoolBar, ToolBar, Menu, ColorDialog, FontDialog, Tree, Table, Combo,
and other widgets improvement
2. Support org.eclipse.swt.widgets.Dialog#open in asynchronous mode.
Java2Script AJAX
—————-
1. Simple RPC. See
http://j2s.sourceforge.net/blog/2006/10/12/java2script-introduces-sim…
2. Update HttpRequest according to working draft of
http://www.w3.org/TR/XMLHttpRequest/
Java2Script Developer Team
————————–
1. Welcome our new developer - Sal Ferro, who joined Java2Script in
October, 2006.
2. Google Group http://groups.google.com/group/java2script/ created.
Joined us!
********
Next Release would be 1.0.0 RC with improved performance in late
December, 2006.
Stay tuned.

Update:
As a matter of mistake, I placed 1.0.0 M3’s “j2slib” into Java2Script
1.0.0 M4 for Eclipse 3.2 (Eclipse 3.1 was not affected). I just
repacked and released 1.0.0 M4. If anyone happened to download and
install M4 with M3’s “j2slib”, please re-download and re-install M4:
http://prdownloads.sourceforge.net/j2s/j2s-1.0.0-m4-repack-eclipse-3.2.zip?download

Extending Java2Script Compiler

Tuesday, October 31st, 2006

Now, the java 2 javascript compiler of the java2script can be extended. There is a tutorial for demonstrating the extension mechanism.
This extension mechanism can be used to override default behavior of java2script compiler. So, why do we need to override the default behavior of the java2script compiler? Let’s have a simple example. Suppose an application that uses a library that can not be converted to java script, an ejb invocation:

EJBX x = EJBUtil.newInstance(EJBX.class, jndiName);

x.methodA();

Now if we use the default java2script compiler the code would be something like:

var x = foo.bar.EJBUtil.newInstance(….);

x.methodA();

But, we now that this will not work. It seems to be unsolvable before the extension mechanism is introduced. But now the java2script compiler can be extended to convert such these codes to another java script code that does work on a browser and also does not use the library.
Now if we extend the java2script compiler we can generate a stub invocation like this, that sould work without any ejb import or invocation:

ServletFacade.runEJBMethod(”foo.bar.EJBX”, “methodA”, jndiName);
//And the ServletFacade could be an stub for calling a servlet that can run EJBs

So, with this mechanism, one can convert any source code in his own way.