Ted Patrick - Demos & MAX @ Adobe Systems


Note: This is the personal blog of Ted Patrick. The opinions and statements voiced here are my own.



Eclipse E4 M1 SWT: JAVA to AS3

DIGG IT!     22 Comments Published Friday, February 13, 2009 at 12:59 PM .

The Eclipse E4 M1 milestone release has some interesting bits in it for Flash development. It seems that the SWT project has added compilation support for SWF from JAVA. Write your app in JAVA and publish as SWF to Flash Player.

The cool part is that you get full JAVA development in Eclipse with all debugging and tooling but you get a SWF file on publish.

It will be interesting to see where this goes especially given it is in Eclipse E4.

Here are some screenshots:






Last image looks like they are translating to AS3 and running MXMLC! Go Flex.

Cheers,

Ted :)

22 Responses to “Eclipse E4 M1 SWT: JAVA to AS3”

  1. # Blogger Mondain

    ZOMG that is cool! Can't wait to try it, too bad all my other projects need love right now.  

  2. # Anonymous Keith Peters

    what the... I actually had to look at my calendar to see if this was April 1.  

  3. # Blogger TK

    Freakin' A! I was planning on doing something similar... dang it.

    Do they support generics? :)  

  4. # Blogger Mistico

    That´s really awesome!!!  

  5. # Blogger diamondTearz

    Whoah!!! So what are the doing- switching out the SWT controls with the analogous mxml controls?
    @Keith- took the words right out of my mouth! My first thought was "stop playin'!".  

  6. # Blogger katopz@sleepydesign.com

    gimmeeee moreee, lol  

  7. # Anonymous Anonymous

    It seems that SWT is struggling to survive. However, no matter what they support, no one will back to the past and write SWT instead of MXML, it is because the productivity is far leg behind the ActionScript environment.  

  8. # Anonymous Tek

    Here is official instructions to start on it : http://wiki.eclipse.org/E4/SWT/Running_the_demos  

  9. # Anonymous sascha/hdrs

    This is awesome! Can they also throw in some performance improved bytecode generation similar to Alchemy?! Then that would be the AS developers wet dream!  

  10. # Blogger Ted Patrick

    I am more interested in porting the vast set of libraries in Java over to AS3 using this toolset. Given they are using MXMLC, I think the implementation has them generating AS3 from the SWT code model in Eclipse. If the AS3 code generation is at all exposed, then many java libs are easy to port directly to the Flash Platform.

    My 2 cents,

    Ted :)  

  11. # Anonymous JT

    Man, This is huge!
    Huge milestone for developers!  

  12. # Blogger André

    anonymous seems not to get the point: the aim in this is neither get activescript developers code in java nor any quest of survive for SWT. E4 aims at having a platform netural UI: code in a platform independant manner and deploy to the desktop or web. This is an extension of the the reach of the Eclipse UI.  

  13. # Anonymous Anonymous

    > It seems that SWT is struggling
    > to survive.

    Yup, struggling just like Eclipse ... not!  

  14. # Blogger ThunderHead

    check out - http://thunderheadxpler.blogspot.com/2007/11/java-to-as3-on-air.html  

  15. # Anonymous Anonymous

    I would rather see the opposite of this.

    I want to be able to code a UI in Flex/AS3 that will run on the JVM and be able to interact with Java code directly.

    Some people tried to do this when Adobe Air first came out but Adobe squashed it.  

  16. # Anonymous Anonymous

    Lets hope we get DOM object access in it  

  17. # Anonymous Peter Elst

    "Some people tried to do this when Adobe Air first came out but Adobe squashed it."

    If you're referring to projects like Merapi and the likes Adobe has been very supportive and in no way 'squashed' it.

    The fact that they are playing safe with the sandbox restrictions for a relatively new runtime is a good thing as far as I'm concerned.

    If you've seen the AIR roadmap session at MAX (recording available on tv.adobe.com) you'll also notice that this is on their radar and they are looking for solutions for native extensibility including Java.  

  18. # OpenID mazharhasan

    Whoa!
    i will luv to see it running on my system  

  19. # Anonymous Anonymous

    Not sure if anyone here could answer my question (or if I'd have to ask the e4 people): what would happen with a multithreaded Java application when compiled with this e4 SWT compiler? Would the threads "survive" and actually work in the Flash Player or would they just be wiped out like for example AS code gets wiped out when its containing Flash swf file is being embedded in a Flex application?  

  20. # Anonymous Anonymous

    @Peter Elst:

    > If you've seen the AIR roadmap session at MAX (recording available on tv.adobe.com) ...

    Would you mind to send the direct link to that video on tv.adobe.com? I wasn't able to find it with a number of different queries.

    Hartelijk dank!  

  21. # Blogger adam

    Excellent! What is the reason to use ActionScript and not the javascript supported by browsers?

    thank you.  

  22. # Anonymous Anonymous

    ok..thkz, i like this software..

    ali khan(kelate)  

Post a Comment

Where to find me:

Ted on Twitter - @AdobeTed
Ted on Adobe Groups
Ted on LinkedIn
Ted on Facebook
Ted at Adobe


Latest

Lists

Links

Jobs

Flex Jobs
city, state, zip

Archives