can u tell where u r running ur program in command prompt or any other java compilation software.
reply as soon.
hidash_in
Junior Poster in Training
86 posts since Oct 2007
Reputation Points: 1
Solved Threads: 0
If you are running in Windows, try prefacing the command with "cmd /c start ";
Ezzaral
Posting Genius
15,985 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
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.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
Well in that case I simply add a readline statement after the print statement. So unless and until you don't press a key it won't exit.
lookof2day
Junior Poster in Training
83 posts since Aug 2007
Reputation Points: 16
Solved Threads: 11