0
votes

I'm trying to run chimpchat from Java code and I get this error:

Unexpected exception 'Cannot run program "/home/asco/adt-bundle-linux-x86_64/sdk/platform-tools": error=13, Permission denied' while attempting to get adb version from '/home/asco/adt-bundle-linux-x86_64/sdk/platform-tools

I can run adb from the shell as a normal user. I've chmod 777'ed the adb program. What can I do? I run Linux Mint 14 (64bit) (have ia32-libs installed) and use java7-openjdk-amd64.

3

3 Answers

2
votes

When I tried to open the Android SDK from Eclipse I also received the error

"...Permission denied' while attempting to get adb version from '..."

initially, I tried

sudo apt-get install ia32-libs

but it did not fix the problem. i had them already.

What fixed the problem was

sudo chmod -R 777 /name-of-root-directory-containing-SDK

Recommendation! Place SDK, JDK and all other manually installed non-system resources in their own root directory. [ example: /resource ] Permissions set on this directory make no change to any critical files.

Warning! Erroneous use of chmod -R on system directories can lead to "must reinstall OS from scratch"

1
votes

it then complains about not finding the adb program

you need to install ia32-libs package:

sudo apt-get install ia32-libs
0
votes

The error is specifying the directory that contains adb, rather than the adb executable itself. Check the permissions on the directory, and that your program is attempting to run the proper command (it may be trying to run the directory, which clearly won't work...).