Flex and Java on Desktop

Hi
We are having this requirement , we want to develop a
application using flex for adobe AIR runtime which will communicate
with java in the desktop, we are not having any servers here, so
flex application want to communicate with java classes with out the
help of any server so I can't use httpservice, webservice or
remoting .
I like to know the ways to communicate from flex 3.0(Adobe
AIR) to java files (java takes care of splitting PowerPoint
files and converting it into serious of jpeg files, and
creating ppt files from the objects returned from flex ).
Is there any other way to communicate form between flex and
java in the desktop ??? please give inputs
Thiru

Hi,
you could use XMLSocket or Socket classes depending on the
type of communication you want to stablish.
I have been testing this for a while although not for a
project.
However my impression is that you need to install the AIR app
which is self-extracted and installed, but in second hand, you have
to install the Java app, that acts as a server, and it must be
executed every time your AIR app is, and the other way around.
Untill now I haven't got any idea on doing this without too
much work, but you can take a look at the Merapi project.
Manu

Similar Messages

  • Getting Started with Flex and Java RPC for Free?

    Good Morning,
    Please forgive me if this is the wrong place to post- I'm
    just having trouble wrapping my head around what is and what isn't
    available for free in the Adobe Flex world.
    I've been working on an application for the last few months
    using Open Laszlo (
    http://www.openlaszlo.org/),
    but I've been running into frustrations with their lack of
    up-to-date documentation, and I've found it difficult to bring new
    people into the project, since the set of users who know it is so
    small.
    While I do like that I can compile to DHTML, that's not
    enough to hold me there.
    I've been looking into Adobe Flex, and it seems like a good
    alternative- I'm comfortable paying $500 for the IDE-
    I use Eclipse currently, so having a plugin for it sounds
    ideal. That said, when I look into ways to talk to a Java backend,
    everything points to Flex Data services, which is now part of some
    larger package costing tens of thousands of dollars.
    I don't need advanced messages, or data synchronization, as
    nice as it would be.. All I really need is the ability to call a
    Java method, and get an object back, which I can then work with in
    Flex.
    I see the forum message that asks
    "How
    do I 'do' Flash for free?, but this only talks about RPC very
    broadly. Given that the message is from over a year ago, I thought
    it would be better form to start a new topic, than replying to it.
    Can someone explain to me what components I'd need, both on
    the client side and the server side?
    Is there a set of manuals that explain how to do Flex RPC
    from Java?
    Can Flex compile to any versions of flash earlier than 9?
    (Flash 6/7 is still in wide deployment)
    Do I want to start using Flex 2, or Flex 3? Are the
    components compatible? Will the F3 docs be ready?
    Finally, where can I purchase the Charting components? The
    ability to create charts such as
    this
    overcome a decent price barrier.
    Thank you for any insight you can offer, and direction you
    can provide.

    quote:
    Originally posted by:
    cunparis2day
    On our project they made a proxy in java where they passed in
    the name of the method as a string, and an array of objects for the
    parameters. The proxy then sent the request via RMI and returned
    the result. Kind of a hack but they say it worked (I wasn't here
    when they did it).
    What did the RMI talk to? Are there docs on this?
    quote:
    Another approach, generate the proxy from the java
    interfaces. Or better yet, generate it dynamically with CGLIB.
    quote:
    Finally, I'm investigating using Mule for the integration.
    Let me know what you think about those suggestions.
    We have our own messages, but how would MULE translate them
    to Flex?
    You know quite a bit more about this, can you take a step
    back, and explain?

  • Flash Builder 4.0 Standalone VS Plugin for Flex and Java Development

    Hello,
    I have recently installed Flash Builder 4.0 for a personal project. The server side of the project was going to be developed in ASP.NET but at the last minute I decided to change it to Java. However now I am wondering if it would be better to uninstall and install Eclipse with the Flash Builder 4.0 plugin.
    I am not really asking which one is better, I guess both are pretty much the same (though I wonder what features are not included in the Eclipse plugin), however I want to know which one would let me create an easier workflow model for the development now that I am going to use Java as well.
    I am open to other suggestions as well.
    Thanks,
    Jorge

    Hey guys, I'm brand new to this as well and you probably don't need an answer now but I found this anyway:
    Flex Builder and Flash Builder both function as Plug-ins to Eclipse, though each also comes in a "stand-alone" flavor - which is still eclipse, but with a lot of the Eclipse functionality torn out for a smaller footprint.
    http://stackoverflow.com/questions/1761919/flex-php-flash-builder-4-vs-eclipse
    All the best!

  • Flex 3 and Java - Integrated Development on Eclipse

    I am new to flex as well as to eclipse. I have downloaded
    Adobe Flex Builder 3.0 and installed it. I want to use java at the
    back-end, but I don't have Java perspective option in eclipse.
    Therefore, I am currently using 2 IDE(s), one is
    flex-builder, and other is Eclipse for Web tool platform
    (eclipse-jee-europa-winter-win32.zip).
    Is there anyway that I can benefit integrated development of
    Flex and java using same IDE?

    I wouldn't try it really... it's not worth the issues you'd
    probably run into and the work of getting it setup, if it's even
    possible. I just run Eclipse and FB separate. If you have a gig of
    ram you should be fine doing this I think.
    If you *really* want to get rid of one, you can use the Flex
    plugin for Eclipse, but I've heard people complain about it not
    playing nice with Java.

  • Sample application of Flex using java

    Can anybody tell or send any URL regarding sample applcation i.e.
    developed using Flex and java
    I am confused abt web.xml
    means how to integrate that flex application.

    Thx Dear,
    At least I got some reply from someone.
    Actually I m trying to search it but not getting any help.
    My prob is.
    I want to develop sample application using Flex and Spring framework.
    Let say there is form called
    Employee.mxml & there are 2 text boxes for username & password .I want to read values entered by user in these text boxes from flex form using Spring framework.
    so can u send me any URL sothat i can get help for this.
    Please help me ASAP.

  • Flex with Ruby or Flex with Java

    Hi,
    I need to use SNMP/SLP protocols in my application.
    So i have plan to develop the Applcation using Flex and Ruby or Flex and Java(HttpServices). In future the applicaiton may need enhanced.
    please any one of you help me , which one is the bset way to develop the applcation.
    Thanks,
    Ravi

    I would go with whatever backend is more familiar to the developers and to the ones who will have to updates the application.

  • Upload any file and view files withflex and java

    HI
    I need to upload any files using flex and server side code in
    java.
    and need to view files like pdf and MS word by flex and
    java/jsp .
    Please help us in resolving this issue.
    Thanks In advance
    Nirmal Kumar R

    You can find an uploadComponent here:
    http://weblog.cahlan.com/2006/12/flex-upload-component.html
    regards - Michael

  • Getting started with flex and Eclipse 3.1?

    Hi all,
    Im a java Eclipse RCP developer and I wanted to work on some small apps using flex.
    I have been searching around on the web for instructions on how to get everything set up, but most of them seem to skip a  few steps.
    I am using Eclipse ganymede (3.1), and have downloaded the flex sdk.  Is there a plugin or something for flex that creates the proper perspectives in eclipse?  Or what exactly do I need to do?
    Also, I see that flex uses mxml, if I want to use flex and java as opposed to flex and php or coldfusion (the only examples I saw) is that possible?  I guess Im slightly confused as to what exactly I am writing this app in... java?  Actionscript?  Php? ??
    Basically my goal is this:
    Use eclipse 3.1 (not flex builder)
    Write an RIA that can also use AIR
    Connect to a MySQL database on the backend
    I have very little experience (or need) for J2EE, but maybe I should use it?
    Can anyone point me to a good tutorial that will get me going to achieve my goal?  Or tell me what exactly I need to install, and how to put it together?
    Thank you!

    You need Flex Builder plugin version.
    Trial version here:
    http://www.adobe.com/cfusion/entitlement/index.cfm?e=flexbuilder3

  • Sending photo of flex to java

    I have a variable in the flex-type byte array.
    I send this variable to java through RemoteObject (BlazeDS), but do not know what type the variable should be the parameter passed to the java.
    Has anyone worked with picture between flex and java shooting in the database?

    I have a variable in the flex-type byte array.
    I send this variable to java through RemoteObject (BlazeDS), but do not know what type the variable should be the parameter passed to the java.
    Has anyone worked with picture between flex and java shooting in the database?

  • Flex 2 / Java

    I am creating an application that will use Flex2/Data
    Services and Java/Spring. Communication will be via RPC.
    I will be using Eclipse with the Flex2 plugin.
    Should I create 2 separate projects. One for Flex and one for
    Java?
    Can the source code for the Flex part and Java part be in the
    same directory structure or should I contain each project
    separately and deploy each project separately?
    I haven't been able to find any info on this so if you can
    point me to some I would appreciate it.
    Thanks

    Hi,
    i would reccomnd using only 1 project and put all your code
    into it. You can use maven2 to build/deploy your application that
    way. Furthermore you will have all syntax highlighting available to
    you this way.
    if you are interested, you can download my (
    http://www.wowww.nl/wordpress/?p=58)
    example project. It is fully based upon a maven2 structure and
    combines the flex and java parts into 1 project.
    regards,
    Marc

  • Error: cannot read: C:\Documents; and Settings\JR\Desktop\logrand.java

    Thats the problem.
    Bug started happening all the sudden.
    Double click a java file on the desktop that just two second before was built fine. Go to build it and it says that.
    "error: cannot read: C:\Documents; and Settings\JR\Desktop\logrand.java"
    Now note this is a file in the IDE.
    copy/paste/change file name/brand new file/turn off the computer. Everything on the desktop path says that same error message. Then i noted the semicolon in the middle of the path after documents. The compilier has misspelled the path name. Its open the file in the IDE but somehow the build step gets a path with a semicolon in the middle.
    What do i do?

    dont bother.
    it felt like some sort of corruption so i just reinstalled netbeans and that did the trick.
    I was still using 3.5 any way =)

  • Drag-and-drop from desktop to Flex app

    I am working on a RIA using flex and am trying to implement drag and drop of different types of files into a Flex UI, I know this is possible using AIR but we are trying to do it through Flex in a browser. Trying out options with javascript and active x controls but no success till now.
    I am seeking pointers to any sites that implemented this or any direction on cracking this one.
    Thanks,
    Rakesh Patwari

    Thank you for the quick response Jeffry,
    Yes, I am facing that issue whichever way we are going in! How about using Javascript/HTML as iframe within flex to get this done?
    Just thinking about it...
    Thanks again,
    Rakesh Patwari

  • Flash, Flex, and the iPad

    While there is no shortage of iPad/Flash discussions on the Adobe and Apple forums, after searching for a couple hours now I have been unable to find the answers to my specific question.  So please forgive me if I missed it somewhere.
    As I understand it, Apple does not support Flash for the mobile and iPad devices.  This is reiterated in a number of Apple forum postings that I just read, as well as Steve Jobs' rant here:
    http://www.apple.com/hotnews/thoughts-on-flash/
    However, I came across this Adobe press release from less than a year ago:
    http://blogs.adobe.com/ukchannelnews/2011/06/20/announcement-mobile-applications-for-andro id-blackberry-iphone-and-ipad/
    Apparently this Flex thing allows me to develop cross-platform mobile applications.  So I do some research on Flex, trying to figure out the difference between Flex and Flash.  I come across Adobe's FAQ here:
    http://www.adobe.com/products/flex/faq.html#flex-flash
    It's not real clear to me, but it sounds like what they are saying is that Flex is simply a programmatic framework around which I can build Flash applications, especially helpful for those more familiar with traditional programming.  If this is the case, based on Adobe's press release above, it sounds like I should be able to use Flash on the iPad via Flex?  What am I missing?  Is there other differences between Flex and Flash?  Or perhaps is it the difference between an application and browser support (like Apple's Safari)?
    Thanks in advance for your patience, and your help.
    3P

    It's easy Pea...
    Flash is a plugin. It runs from withing the browser IE, Firefox, Safari, Opera, etc... It also can be run standalone, via special exe program on Windows platform.
    Although this is less common. Here are all the Flash versions: http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html
    AIR is a cross platform runtime, kind of like Java (build once run everywhere). But with AIR it's a bit more tricky. You have to compile your program to each target platform (Desktop, Andriod, BlackBerry, iOS) separately. It's not like with Java where you can indeed run your jar file on lot of platforms. AIR is essentially Flash "on steroids" as it mostly has the same API as Flash and builds on top of it. But AIR not in the pluging form, i.e. you don't need a web browser to run it from.
    Here are the latest AIR runtime: http://get.adobe.com/air/
    and SDK: http://www.adobe.com/devnet/air/air-sdk-download.html
    You will need AIR SDK to build AIR applications and it has to be overlayed on top of Flex SDK which you can find here:
    Flex SDK: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.6
    Now Flex SDK is essentially a component framework. You will need a button in your application, or a Video component, right? So that is what Flex provides for you free of charge.
    Obviously this sound simple but Flex is much more then that and here is your
    Flex documentation: http://www.adobe.com/devnet/flex/documentation.html
    So, Flex is a component framework which lets you build applications which target either Flash or AIR as executable runtime. For Flash it is called Web application and it runs from withing browser or standalone Flash player. For AIR it is called Desktop or Mobile project and it runs from withing AIR runtime which has to be installed on your device or bundled with your application.
    Now, speaking of Steve rants, yes, they wanted to kill Flash on their platform, there was even a guy there who was responsible for that result (I forgot his name but you can google), although Adobe never admited that and played it nice with Apple. Why they wanted to kill most expressive and complete vector and video engine on the web (Flash)? It's simple! This is beacase they wanted to play on their nice and cozy iOS/iPad/iPod playground alone! Because they want to control the delivery of the content from publisher to consumer. they want to stick their proprietory products and specifications in between and skim the money! That is why they don't need Flash in the browser. Flash allows people to publish and consume an impressive content without charging a dime! That includes H264 video among other things. And that is what Apple doesn't want to see.
    Good luck with Flex and everything else,
    SdS

  • Open URL in default Browser java.awt.Desktop was working...

    I downloaded Net Beans 6.5 with JavaFX 1 and now java.awt.Desktop isn't even an option for the imports, is there an alternative method to open URLs from my application?

    No, you aren't wrong.
    It's, and I mean this with all due respect, idiotic.
    I found some code on the net that does the same thing:
    http://www.centerkey.com/java/browser/
    Just one class, very simple.
    But I really would like java.awt.Desktop to work, I want the system tray integration stuff.
    Questions about getting Java 1.6 compatibility (the reason why the import doesn't work) go unanswered. It seems there is some hard coded -target 1.5 in some part of the javafx compiler. I can't figure out how to change it.

  • How to compile and execute lex,yac,c and java programs

    its the 3rd day on my New MacBook pro..
    as i just migrated from windows to mac i love to work on this..
    The main problem  is i DON't know .......
    how to compile and execute
    1) lex and yac programs
    2) c program
    3) java program
    so please help me
    THIS is the error i got   a1.l is a program
    i got the same error when i used  gcc
    $ lex a1.l
    $ cc lex.yy.c                                 
    Undefined symbols:
      "_yywrap", referenced from:
          _yylex in cc8QDQjW.o
          _input in cc8QDQjW.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

    Is the problem that you don't know how to compile and execute these programs on a Mac, or just that you don't know how to compile and execute them?
    Mac OS X is really just a version of BSD Unix, as far as programs like like bison, flex and gcc are concerned...and even when Apple specific versions are provided in the Developer Tools, there are symlinks in the usual places in the Unix file hierarchy.
    For problems with lex and yacc, I suggest you start with their own references, for example, here.
    Or you could just use %option noyywrap, if you only have one file to scan.
    Or you could link to libfl.a using -lfl and use the default version from that library.
    But you really should (as Keith Barkley was subtly hinting at) learn how these tools work and why they work that way.

Maybe you are looking for