Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q:compile error #252

Closed
kingjr opened this issue Nov 11, 2015 · 1 comment
Closed

Q:compile error #252

kingjr opened this issue Nov 11, 2015 · 1 comment

Comments

@kingjr
Copy link

kingjr commented Nov 11, 2015

Hi,

when running buildozer android debug deploy run I get the following error:

/home/jrking/.buildozer/android/platform/android-sdk-20/tools/android: 1: /home/jrking/.buildozer/android/platform/android-sdk-20/tools/android: java: Permission denied
/home/jrking/.buildozer/android/platform/android-sdk-20/tools/android: 110: exec: java: Permission denied

I'm on Ubuntu 14.04. I've tried running with sudo, installing buildozer stable version of build via pip, as well as the development version through github, all this without success.

It seems that the permission error is first encountered on line 83 of .buildozer/android/platform/android-sdk-20/tools/android:

javaExtDirs=`"${java_cmd}" -jar "${frameworkdir}/archquery.jar" java.ext.dirs`

When running the corresponding command directly in the terminal, I get:

java -jar /home/jrking/.buildozer/android/platform/android-sdk-20/tools/lib/archquery.jar java.ext.dirs
The program 'java' can be found in the following packages:
 * default-jre
 * gcj-4.8-jre-headless
 * openjdk-7-jre-headless
 * gcj-4.6-jre-headless
 * openjdk-6-jre-headless
Try: sudo apt-get install <selected package>

which is a different error, so I suppose that the java environment variable is not the same when it's run by buildozer or directly in the terminal. I still tried installing default-jre, but get the same error.

Do you have any idea what I should do?

Thanks!

@kingjr
Copy link
Author

kingjr commented Nov 11, 2015

I found the issue, my environment was not correctly set.

I thus added to ~/.bashrc

JAVA_HOME=/usr/lib/jvm/jre1.7.0
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH

@kingjr kingjr closed this as completed Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant