Runtime.getRuntime().exec("cmd /C start FINAL6.COM");
The program's behavior is wrong when i use this implementation....
When just double clicked, the program's flow is correct...
is this a bug?
the .COM file can be found here.
Can anyone try to test this code?
The pattern for inputting a value is like this,
For example, addition
First addend 003
Second addend 003
Total 006
The .COM file is a simple calculator in A86 Assembler...
The program is still in progress, but you can test it for invoking...
At scenario 1
When invoking like this:
Expand|Select|Wrap|Line Numbers
- Runtime.getRuntime().exec("cmd /C start FINAL6.COM");
At scenario 2
Ive made a batch file that has text: FINAL6.COM... (execute.bat)
I try to invoke that batch file with this
Expand|Select|Wrap|Line Numbers
- Runtime.getRuntime().exec("cmd /C start execute.bat");
Im using WINDOWS SP2....Updated.
jdk 1.6.03
Classpath set....
AntiVirus disabled.... ( Hoping that it was affected by this ) (Nonsense)
Jos, BigDaddy, roxxxxxx and all java lovers here...
Could you guys advice me if there is another way to invoke this .COM file?
I really get stucked....
I feel so bad at this....
Any kind/unkind reply will be greatly appreciated....
Sukatoa...