|
keep the main thread alive -
03-13-2008, 12:37 PM
Hi,
I want to call a c++ app from a java app. The c++ app will be the View part consisting by a win32 window (legacy code) and java app will be the business logic.
I manage to open the win32 window from java through jni, but after the main method is finished both application are closed.
If I open another java Frame from my java app than both applications remain open.
How a Frame works internally? How can I such a behaviour in my application simulate? - maybe with threads.
I have tried also to call java app from the c++ app and then the problem will be solved, but with no luck because these application should work in a mobile environment (Windows Mobile 5 & 6) and I didn't find a jvm.dll for the ARM platform targeted.
Any idea or advice will be very helpfull.
Thank you
|