This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I am working to sew together a two java programs, and I need to have them execute at the command (DOS prompt, for example) so that I can integrate it into HP Openview Operations as a Monitor program. I was able to test and run the program in Eclipse fine, and not at the command prompt. Here is the code and class files.
03/11/2012 11:30 AM 1,493 RuntimeExec$StreamWrapper.class
03/11/2012 11:30 AM 2,124 RuntimeExec.class
Windows CMD prompt:
I know its something I am over looking.
Thanks for your help in advance.
i dont use package statements much but what i remember is you have to cd to the folder one up from the package folder.
for example if the files are in myStuff\cmdLine, you need to cd to myStuff then type java cmdLine/RuntimeExec