"i want to wrap my c++ exe with java swing interface
the c++ is on Unix machine and the swing application is on windxp.
i did not succed to do this with:

Runtime.getRuntime().exec()

after i mapped the Unix machine to windXp dir.

can any one tell me how can i do it without RMI. "

(gulp)

Ok, first of all....this is really the wrong list for this question.
Try a Java list instead, you'll probably get more relevant information.

I can tell you though, that it's not going to be easy -

If your C++ application is on UNIX, I'm guessing that it's been compiled
with UNIX libraries and for the UNIX platform, right?

So it's really not surprising that your Swing application running under
Windows cannot execute UNIX code.

The method that springs to mind would be to write a Java wrapper that
sits and executes on the UNIX machine, listening for remote calls from
the Swing component on Windows. These calls could be made via RMI, or
SOAP, or even some custom flavour of XML sent down a socket connection,
or whatever - the point is that then the Java wrapper which makes the
runtime.exec() call will be running under UNIX, so the exec() call will
be made via the UNIX host.

Good luck

Alistair



--
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to