JAVA_HOME is not defined correctly.
-
Try setting JAVA_HOME to "/usr/lib/jvm/java-6-openjdk-amd64/bin"
As it contains both javac and java (symbolic link to ../jre/bin/java ) -
wrote on 19 Sept 2013, 12:52 last edited by
Ok so I have to add
@export JAVA_HOME="/usr/lib/jvm/java-6-openjdk-amd64/bin"@but where? in .profile? .bashrc?
Thanks -
Yup. try in bashrc or /etc/environment
-
wrote on 19 Sept 2013, 14:35 last edited by
Done. Now if I run...
"Application Output":http://pastebin.com/eqJCfW9p
"Compile Output":http://pastebin.com/bGSZmun5
I think it's not a Java problem anymore...
-
wrote on 19 Sept 2013, 15:40 last edited by
I'm not understanding anything.
Last update, every time I click on "run" I get
Application Output:
@Starting remote process.Unable to start 'org.qtproject.example.Test'.@and General Messages
@Could not read qmake configuration file /home/andrea/Qt5.1.1/5.1.1/android_armv7/mkspecs/android-g++/qmake.conf.@Maybe this is the problem now, I've never checked this tab before...
-
Well from the compile output it seems that the APK has been created
@/home/andrea/Code/QML/Test/android/bin/Test-debug.apk@
But on deployment to the emulator it crashes due to some OpenGL issues.
I donot have much detailed idea about this.
But just try to deploy this APK on a physical device and see if it works. -
wrote on 19 Sept 2013, 17:23 last edited by
I tried in a physical device and it works!!!!!!!
But I can't reupload the apk every time to check if it's working well....so maybe I should open a new topic for this issue, what do you think?
Thanks a lot for the help!
-
Yes. You can try asking in new post with appropriate details
-
wrote on 19 Sept 2013, 20:29 last edited by
I've done it, thanks all for the help
-
wrote on 24 May 2014, 20:46 last edited by
I also struggled with the "Buildfile: build.xml does not exist!". It was because I only installed openjdk-7-jre. openjdk-7-jdk is also required.
Qt Creator kept saying "/usr/lib/jvm/java-7-openjdk-i386" was invalid for the JDK location. I guess it looks for something that openjdk-7-jdk puts in the /usr/lib/jvm/java-7-openjdk-i386. After installing openjdk-7-jdk, Qt Creator was happy with the location.
(Using Kubuntu 14.04, JAVA_HOME set in /etc/enviroment)