Possible Duplicate:
run shell command from java
I want to export some variable so I have this command.
Runtime.getRuntime().exec("export a=b");
what is wrong with this command because this throw exeption:
java.io.IOException: Cannot run program "export": java.io.IOException: error=2, No such file or directory