• Post Reply Bookmark Topic Watch Topic
  • New Topic

Forking a JVM  RSS feed

 
Ashish Chopra
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

Is it possible to fork a JVM from a java program, without the use of any native code (JNIs) or using rt.exec?

In case it is, please let me know how?and if it is not, then is there a reason why it cannot be done?

TIA
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it can't be done. Why? Because you said we can't use the API that could do it.
 
Ashish Chopra
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot EFh, I have a few follow up questions:

The only possible way to fork a JVM is to do a runtime.exec of the jawav process?

another question, will this call create a child JVM, or will it create an independent JVM?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!