This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I have an applet and wanted to pass a string to the servlet and make the servlet execute a file in the server. Iam using Tomcat 4.1. The connectivity between the applet and servlet is proper. But the servlet doesnt execute the Exec() command. I have no idea why. Can you please look into it and help me out?
[ December 30, 2006: Message edited by: Bear Bibeault ]
[BSouther: Added UBB CODE tags] [ December 30, 2006: Message edited by: Ben Souther ]
Does it really not execute it? You mean in the sense that it is skipping it? That would be strange. Have you ascertained that the statements before and after are executed? Is there no stack trace? You might also want to read up on the pitfalls of using Runtime.exec.
Hi first iam sorry for the upper case subject in the post....
I wanted to see if it exec is working properly and ran notepad.... the problem is that when i run it notepad isnt executed....but when i give a waitFor() on this process, the statements after it are not executed ....
Shall try with the batch file as well in a few mins...
Joined: Nov 29, 2006
Hi, It worked with the batch file running the exe but not when i directly run it... no idea why its wierd.... thanks a lot anyways..