The Artima Developer Community
Sponsored Link

Java Answers Forum
run java program from java

1 reply on 1 page. Most recent reply: Aug 7, 2002 1:47 PM by Eugen Barbu

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Daniel Vincen

Posts: 1
Nickname: starbuck
Registered: Aug, 2002

run java program from java Posted: Aug 7, 2002 4:20 AM
Reply to this message Reply
Advertisement
Hello,

I want to start a new java aaplication out from another one.
I.e. I'm running a 'server' which should be able to start a new process (e.g. Runtime.exec("java.bat")).

Thanks a lot ;-)


Eugen Barbu

Posts: 1
Nickname: eugenb
Registered: Aug, 2002

Re: run java program from java Posted: Aug 7, 2002 1:47 PM
Reply to this message Reply
1.create a separate thread from the "master" aplication
2. in this thread load(with a ClassLoader) and execute the method main of this loaded class or other method(using reflection).

Flat View: This topic has 1 reply on 1 page
Topic: preparing a zip file using GZipOutputStream class Previous Topic   Next Topic Topic: Display windows ou web explorer

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use