DZone Forums
Go Back   DZone Forums > Community > Languages & Frameworks > Java
Reload this Page keep the main thread alive
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Mar 2008
Default 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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UI Thread issues in SWT on eclipse 3.0 shnkar007 Eclipse 1 01-27-2009 06:24 AM
eclipse/vistajava.lang.NoClassDefFoundError: –Djava/library/path=//lib Exception main adhoul Eclipse 1 11-15-2008 11:52 AM
Alive and kicking... jbuchberger Zones 2 03-17-2008 10:03 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com