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

Error: JAVA_HOME is not defined correctly. #427

Closed
kasravnd opened this issue Jul 31, 2015 · 1 comment
Closed

Error: JAVA_HOME is not defined correctly. #427

kasravnd opened this issue Jul 31, 2015 · 1 comment

Comments

@kasravnd
Copy link

After running the following command :

./build.py --package org.test.touchtracer --name touchtracer --version 1.0 --dir ./python-install/share/kivy-examples/demo/touchtracer debug

I got the following error :

Error: JAVA_HOME is not defined correctly.
  We cannot execute /usr/lib/jvm/jdk1.7.0/bin/java
Traceback (most recent call last):
  File "./build.py", line 508, in <module>
    make_package(args)
  File "./build.py", line 357, in make_package
    subprocess.check_call([ANT, arg])
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1

Am I need to install jdk1.7.0 or I need to change the path of java?

this is this the result of ls command in /usr/lib/jvm :

default-java  java-1.7.0-openjdk-amd64  java-7-openjdk-amd64  java-7-oracle

And in some of this directories I have /bin/java.

And after that I change the name of (for example ) the directory java-1.7.0-openjdk-amd64 to jdk1.7.0 it raise the following error:

BUILD FAILED
/home/username/python-for-android/dist/default/build.xml:6: Source resource does not exist: /home/username/python-for-android/dist/default/project.properties

Total time: 0 seconds
Traceback (most recent call last):
  File "./build.py", line 508, in <module>
    make_package(args)
  File "./build.py", line 357, in make_package
    subprocess.check_call([ANT, arg])
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@inclement
Copy link
Member

Closing as this issue relates to the old toolchain which is no longer supported. Please open a new issue if you experience this problem with the current master branch.

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

2 participants