Run app from within your code

Hi,

1)How can I run some application from within my code ?

Any examples ?

2) How is it related to thread topic ? Will it be a "normal"

light-weight thread or is it going to be a "proper" heavy

thread ?

Cheers,

Adrian

[265 byte] By [AdrianSosialuka] at [2007-11-27 10:52:16]
# 1

USE GOOGLE

> Hi,

Use google

>

> 1)How can I run some application from within my code

Use google

> Any examples ?

Use google

> 2) How is it related to thread topic ? Will it be a

Use google

> "normal"

Use google

> light-weight thread or is it going to be a "proper"

Use google

> heavy thread ?

Use google

tjacobs01a at 2007-7-29 11:36:30 > top of Java-index,Java Essentials,New To Java...
# 2

If you want to launch a process (is that what you mean by a "heavy thread"?), see Runtime.exec or ProcessBuilder.start

BigDaddyLoveHandlesa at 2007-7-29 11:36:30 > top of Java-index,Java Essentials,New To Java...
# 3

> Hi,

>

> 1)How can I run some application from within my code

> ?

> Any examples ?

Runtime.exec

http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

> 2) How is it related to thread topic ? Will it be a

> "normal"

> light-weight thread or is it going to be a "proper"

> heavy

> thread ?

The external process is a completely separate process. It's not a lightweight thread. In addition, the exec method starts a new Java thread.

>

>

> Cheers,

>

> Adrian

jverda at 2007-7-29 11:36:30 > top of Java-index,Java Essentials,New To Java...
# 4

I googled "hi" (I'm feeling lucky) and thanks to hi5.com, I'm hip to Daddy Yankee.

BigDaddyLoveHandlesa at 2007-7-29 11:36:30 > top of Java-index,Java Essentials,New To Java...
# 5

> I googled "hi" (I'm feeling lucky) and thanks to

> hi5.com, I'm hip to Daddy Yankee.

Google UK took me hostelling. Hostelling International, you see

There's something very English about that result

georgemca at 2007-7-29 11:36:30 > top of Java-index,Java Essentials,New To Java...
# 6

Thanks a lot guys !

AdrianSosialuka at 2007-7-29 11:36:30 > top of Java-index,Java Essentials,New To Java...