Hi,
I want to use exec method and I don't know how to implement it.
I have the following code:
class F
{
public void main(
String args[])
{
System.exec("cd");
}
}
What I want to do is to execute cd command from
Java enviroment. After compiling this code I obtanin the following error:
Cannot resolve Symbol: method exec (java.lang.String)
Location java.lang.System
System.exec("cd");
^
1 error
I type import java.lang.System and import java.lang.String but the error doesn't dissapear.
I would like what's wrong.
Thanks.