Just Confused, I am newbie

2 views
Skip to first unread message

Narendra Sisodiya

unread,
Sep 26, 2008, 7:24:59 PM9/26/08
to Java2Script
Dear All, Today I found info about java2script , I went to the
description and I found that it is a very very good tool to make a
RIA,
But what is the difference between Google Web Toolkit and
Java2Script ??
I do not know much about both but both deal with Java and JavaScript.
Also,, I am trying to make a voice enabled internet application, Will
Java2Script be useful ??
I have seen a gtalk application, and see the power of java2Script
library,
Please guide me, I am eagerly waiting to dive into Java2Script.

Regards
Narendra Sisodiya

Zhou Renjian

unread,
Sep 27, 2008, 10:42:48 AM9/27/08
to java2...@googlegroups.com
Hi Narendra,

There are two major differences between GWT and Java2Script.
1. GWT compiles Java into JavaScript in C/C++ way: *.cpp --> *.o --> *.exe, no class information, no metadata. JavaScript compiles Java into JavaScript in Java's way: *.java --> *.class,  all class information is retained.
2. GWT develops a new set UI component library, which is available for browser only. Java2Script reuses Eclipse SWT library, which is available on all common OS platform. Java2Script just ports Eclipse SWT into browser platform. So all your SWT-based desktop applications can be compiled into browser's JavaScript-based applications, without or with a few modifications.

Java2Script won't help you on voice application.

If you would like to learn more about Java2Script, you should learn more about Java and Eclipse SWT besides http://j2s.sourceforge.net/document.html .

Regards,
Zhou Renjian

narendra sisodiya

unread,
Sep 27, 2008, 10:52:55 AM9/27/08
to java2...@googlegroups.com
Thanks , I am deleting /home/narendra/gwt directory from my system.

I do not know why "Google reinvent the wheels " , Google can support Java2Script , Firefox , OpenMoko !!

But now after I will start learning Java2Script, I know It is not much useful for voice application in browser.
In my project , I may use xmpp or flash for voice streaming ,

But the major hurdle in my project is =-> ,"I have to record audio some how inside the browser,"


--
┌───[ Narendra Sisodiya ]──────────────┐
│     http://narendra.techfandu.org         │
│     http://www.lug-iitd.org                    │
└────────────[ +91-93790-75930 ]──────┘

narendra sisodiya

unread,
Sep 27, 2008, 6:16:30 PM9/27/08
to java2...@googlegroups.com
2008/9/27 narendra sisodiya <narendra...@gmail.com>

On Sat, Sep 27, 2008 at 8:12 PM, Zhou Renjian <zhour...@gmail.com> wrote:
Hi Narendra,

There are two major differences between GWT and Java2Script.
1. GWT compiles Java into JavaScript in C/C++ way: *.cpp --> *.o --> *.exe, no class information, no metadata. JavaScript compiles Java into JavaScript in Java's way: *.java --> *.class,  all class information is retained.
2. GWT develops a new set UI component library, which is available for browser only. Java2Script reuses Eclipse SWT library, which is available on all common OS platform. Java2Script just ports Eclipse SWT into browser platform. So all your SWT-based desktop applications can be compiled into browser's JavaScript-based applications, without or with a few modifications.

Java2Script won't help you on voice application.

Will I be able to make web based pdf viewer using java2script??
Actually I want to have a Javascript based control over slides in pdf form, which will help me to create slideshow,

Zhou Renjian

unread,
Sep 27, 2008, 8:01:18 PM9/27/08
to java2...@googlegroups.com
I don't think Java2Script is ready for pdf viewer. Parsing and rendering a PDF is a huge complex job. But you can take a try.

BTW: Developing web-based office tools similar to Google Docs, Google SpreadSheet and others by using Java2Script is feasible.

Regards,
Zhou Renjian

narendra sisodiya

unread,
Sep 27, 2008, 8:13:07 PM9/27/08
to java2...@googlegroups.com
Something Like , Powerpoint , with less feature , is possible,
I am trying to make a web based slideshow maker cum presenter,


Regards,
Zhou Renjian


Reply all
Reply to author
Forward
0 new messages