I am trying to start tomcat server through java application by making use of Runtime class in java .But it is compiling properly ,but when i try to rum program ,it wont start tomcat server,instead it will show java.lang.ProcessImpl@11b86e7 in command window.
Can anyone please tell me how to run server from java application.
I am posting code here ,if there is any mistake in code ,please inform me that
[ September 25, 2006: Message edited by: harish thrivile ]
Giving up is the easiest thing in the world to do..but holding it together when everything seems like falling apart is true strength!!
with regards, Harish.T
How do you know it's not starting Tomcat? Did you try connecting to it?
The output from Tomcat (or any process you start) won't go to the screen; it goes to a "pipe" so that you can read it from your Java program. Call getInputStream() on the Process returned from your exec() call, read everything from the stream and print it to the screen, if you want to be able to see it.