Robin,   There are 2 ways this can be done - none is pretty.
1.You can "navigateToFile" - based on the mime type OS will open appropriate
programe (Word for doc, etc and hopefully java for class). Needless to say
it is error prone and configuration dependent.
2. You need binary component that would be used in conjunction with AIR.
Unfortunately, you can not distribute automatically executable binary
components automatically with AIR, so special program needs to be preloaded
and invoked on the client machine. We had few C++ implementations on Windows
that communicate with Flash runtime via LocalConnection, not sure what your
platforms might be. That component would go into the AIR file and extract
jetty server/run it. All-in-all,for Windows platform and to follow strict
rules of security (only signed/trusted AIR files can distribute code)  it is
probably a 2 weeks project,with probably another week for each subsequent
platform.
Sorry,
Anatole Tartakovsky

On Tue, Aug 12, 2008 at 4:53 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   Well, you'd have to figure out a way to have either your Java app or
> your AIR app not appear in the task bar or dock, but besides that I imagine
> you could just use java.lang.System.exec()
>
> That's about all the help I can be with this though, I haven't done it :)
>
> -Josh
>
> On Tue, Aug 12, 2008 at 6:11 PM, robin bakkerus <[EMAIL PROTECTED]>wrote:
>
>> Hi Josh,
>>
>> Ok, the other way around, but do you have an example how to that.
>> thanks in advance
>>
>> robin
>>
>> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>> >
>> > Air can't listen to sockets, nor can it spawn external programs.
>> You'd have
>> > to have a Java program with embedded Jetty which then loads your AIR
>> app.
>> >
>> > -Josh
>> >
>> > On Tue, Aug 12, 2008 at 3:07 PM, robin bakkerus
>> <[EMAIL PROTECTED]>wrote:
>> >
>> > > Hi Anatole,
>> > >
>> > > But that is not an embedded server!
>> > > What i want is to make an AIR application that can easily communicate
>> > > with (existing) Java code (hence BlazeDS), but without the need to
>> > > start a server. Well you start a server but automatically 'under
>> > > water'. But then i how to start this server?, what is the jetty.xml
>> > > looks like?
>> > >
>> > > gr Robin
>> > >
>> > > --- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
>> > > <anatole.tartakovsky@> wrote:
>> > > >
>> > > > Robin,   You just unpack jetty, then unpack BlazeDS into
>> webapps/BlazeDS
>> > > > subfolder. Then go to the /bin subfolder of jetty and run either
>> > > > exe(windows) or "./jetty.sh run" on Mac/Linux
>> > > > Finally go to the browser and check http://localhost:8080 to see
>> > > jetty start
>> > > > page.
>> > > >
>> > > > HTH,
>> > > > Anatole
>> > > >
>> > > >
>> > > > On Mon, Aug 11, 2008 at 6:10 AM, robin bakkerus
>> > > <robin.bakkerus@>wrote:
>> > > >
>> > > > >   Hi there,
>> > > > >
>> > > > > Does anyone has an example of an embedded Jetty6 or Jetty7 server
>> > > > > including BlazeDs plus example how to start this server?
>> > > > >
>> > > > > thank you in advance
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > >
>> > >
>> > >
>> > > ------------------------------------
>> > >
>> > > --
>> > > Flexcoders Mailing List
>> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> > > Search Archives:
>> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> > > Links
>> > >
>> > >
>> > >
>> > >
>> >
>> >
>> > --
>> > "Therefore, send not to know For whom the bell tolls. It tolls for
>> thee."
>> >
>> > :: Josh 'G-Funk' McDonald
>> > :: 0437 221 380 :: [EMAIL PROTECTED]
>> >
>>
>>
>>
>> ------------------------------------
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
>  
>

Reply via email to