I used
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("C:\\Android\\android-sdk-windows\\platform-tools\\adb.exe forward tcp:7777 tcp:7777");
for port forwarding in adb using android program. But it shows
Exception :: java.io.IOException: Error running exec(). Commands: [C:\Android\android-sdk-windows\platform-tools\adb.exe, forward, tcp:7777, tcp:7777] Working Directory: null Environment: null
what is the problem about the code?? Anyone can help me please..........