View Single Post
Join Date: Nov 2004
Posts: 6,145
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Runtime.getruntime.exec(); for my java compiler

 
0
  #4
Oct 10th, 2007
you are not creating a compiler, you're creating a program that tries to call a compiler someone else created.

The reason your output is not retained is likely because you're launching another process which under Windows means another command shell, which gets closed as soon as that process completes.

And all that when you don't have to create another process at all, but can run any public method in any Java class from any method in any other Java class as long as the class you want to access is on the classpath.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote