Thread: [tcljava-user] How to know when a java application is closed from tcl
Brought to you by:
mdejong
From: Eva P. M. <evi...@gm...> - 2009-02-19 11:12:29
|
Hi, I want to open a java application from a Tcl application and then, when the java application is closed, let it know to the Tcl application. I think I could do this with the tcl blend library using the command java::bind $p windowClosed. Is it correct or there is a better way to do this? Thanks. |
From: D. J. H. <dha...@mi...> - 2009-02-19 17:54:55
|
That would work as long as the code/app you're executing is well behaved. If that Java code calls System.exit, that will kill your whole process... -=- D. J. On Feb 19, 2009, at 4:12 AM, Eva Perez Mastroianni <evi...@gm... > wrote: > Hi, > > I want to open a java application from a Tcl application and then, > when the java application is closed, let it know to the Tcl > > application. > > I think I could do this with the tcl blend library using the command > java::bind $p windowClosed. > > Is it correct or there is a better way to do this? > > Thanks. > > --- > --- > --- > --------------------------------------------------------------------- > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source > code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Eva P. M. <evi...@gm...> - 2009-02-20 09:36:54
|
My java application must end calling System.exit(0). Can I do anything before exiting the java application to not make the tcl application die? I only want to launch a java application from tcl and let know the tcl when it has been finished. Thanks a lot. 2009/2/19, D. J. Hagberg <dha...@mi...>: > > That would work as long as the code/app you're executing is well > behaved. If that Java code calls System.exit, that will kill your > whole process... > > > > -=- D. J. > > On Feb 19, 2009, at 4:12 AM, Eva Perez Mastroianni < > evi...@gm... > > wrote: > > > Hi, > > > > I want to open a java application from a Tcl application and then, > > when the java application is closed, let it know to the Tcl > > > > application. > > > > I think I could do this with the tcl blend library using the command > > java::bind $p windowClosed. > > > > Is it correct or there is a better way to do this? > > > > Thanks. > > > > --- > > --- > > --- > > --------------------------------------------------------------------- > > Open Source Business Conference (OSBC), March 24-25, 2009, San > > Francisco, CA > > -OSBC tackles the biggest issue in open source: Open Sourcing the > > Enterprise > > -Strategies to boost innovation and cut costs with open source > > participation > > -Receive a $600 discount off the registration fee with the source > > code: SFAD > > http://p.sf.net/sfu/XcvMzF8H > > _______________________________________________ > > tcljava-user mailing list > > tcl...@li... > > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > |
From: Jared H. <ho...@mo...> - 2009-02-20 14:11:48
|
You could try an "exec" expression to launch a separate jvm. -Jared From: Eva Perez Mastroianni [mailto:evi...@gm...] Sent: Friday, February 20, 2009 3:37 AM To: A list for users of tcljava Subject: Re: [tcljava-user] How to know when a java application is closedfrom tcl My java application must end calling System.exit(0). Can I do anything before exiting the java application to not make the tcl application die? I only want to launch a java application from tcl and let know the tcl when it has been finished. Thanks a lot. 2009/2/19, D. J. Hagberg <dha...@mi...>: That would work as long as the code/app you're executing is well behaved. If that Java code calls System.exit, that will kill your whole process... -=- D. J. On Feb 19, 2009, at 4:12 AM, Eva Perez Mastroianni <evi...@gm... > wrote: > Hi, > > I want to open a java application from a Tcl application and then, > when the java application is closed, let it know to the Tcl > > application. > > I think I could do this with the tcl blend library using the command > java::bind $p windowClosed. > > Is it correct or there is a better way to do this? > > Thanks. > > --- > --- > --- > --------------------------------------------------------------------- > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source > code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user ------------------------------------------------------------------------ ------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: rahul <ra...@Su...> - 2009-02-23 07:52:01
|
| My java application must end calling System.exit(0). Can I do anything | before exiting the java application to not make the tcl application die? I | only want to launch a java application from tcl and let know the tcl when it | has been finished. Take a look at this thread http://forums.sun.com/thread.jspa?threadID=667798 hope it helps. | 2009/2/19, D. J. Hagberg <dha...@mi...>: | > | > That would work as long as the code/app you're executing is well | > behaved. If that Java code calls System.exit, that will kill your | > whole process... | > | > | > | > -=- D. J. | > | > On Feb 19, 2009, at 4:12 AM, Eva Perez Mastroianni < | > evi...@gm... | > > wrote: | > | > > Hi, | > > | > > I want to open a java application from a Tcl application and then, | > > when the java application is closed, let it know to the Tcl | > > | > > application. | > > | > > I think I could do this with the tcl blend library using the command | > > java::bind $p windowClosed. | > > | > > Is it correct or there is a better way to do this? | > > | > > Thanks. | > > | > > --- | > > --- | > > --- | > > --------------------------------------------------------------------- | > > Open Source Business Conference (OSBC), March 24-25, 2009, San | > > Francisco, CA | > > -OSBC tackles the biggest issue in open source: Open Sourcing the | > > Enterprise | > > -Strategies to boost innovation and cut costs with open source | > > participation | > > -Receive a $600 discount off the registration fee with the source | > > code: SFAD | > > http://p.sf.net/sfu/XcvMzF8H | > > _______________________________________________ | > > tcljava-user mailing list | > > tcl...@li... | > > https://lists.sourceforge.net/lists/listinfo/tcljava-user | > | > | > ------------------------------------------------------------------------------ | > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, | > CA | > -OSBC tackles the biggest issue in open source: Open Sourcing the | > Enterprise | > -Strategies to boost innovation and cut costs with open source | > participation | > -Receive a $600 discount off the registration fee with the source code: | > SFAD | > http://p.sf.net/sfu/XcvMzF8H | > _______________________________________________ | > tcljava-user mailing list | > tcl...@li... | > https://lists.sourceforge.net/lists/listinfo/tcljava-user | > | ------------------------------------------------------------------------------ | Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA | -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise | -Strategies to boost innovation and cut costs with open source participation | -Receive a $600 discount off the registration fee with the source code: SFAD | http://p.sf.net/sfu/XcvMzF8H | _______________________________________________ | tcljava-user mailing list | tcl...@li... | https://lists.sourceforge.net/lists/listinfo/tcljava-user ---~*~--- rahul -- 1. e4 _ |
From: Kristoffer L. <se...@fi...> - 2009-02-23 08:28:52
|
On 23 Feb 2009, at 09:49, rahul wrote: > | My java application must end calling System.exit(0). Can I do > anything > | before exiting the java application to not make the tcl > application die? I > | only want to launch a java application from tcl and let know the > tcl when it > | has been finished. I don't think the Tcl app should exist if the Java application you started with [exec] or [open] calls System.exit. That should merely cause the Java process (the child process) to exit. / http://www.scred.com/ / http://www.fishpool.com/~setok/ |