I googled around and still found my way here for some help, hopefully someone has the time to help.
I am trying to compile android project via Android sdk and it complains that it needs Java 1.6 and can not use Java 1.7.
I have both installed as listed.
Code:
ee@linux-r5rj:~/Android/cmsrc> update-alternatives --list java/usr/java/default/bin/java
/usr/java/latest/bin/java
/usr/lib/jdk_Oracle/bin/java
/usr/lib64/jvm/jre-1.6.0-sun/bin/java
/usr/lib64/jvm/jre-1.7.0-openjdk/bin/java
lee@linux-r5rj:~/Android/cmsrc>
Two Questions:
1) Is there a way to quickly switch between Java versions, for example, while I am running the compiler in Android SDK I could switch to Java 1.6.
2) Is there a way to run a command and have it and all its helper programs run under Java version 1.6. This would be the "brunch" command in Android sdk.
There is also the possibility that I am doing something else wrong, so if someone spots some other stupid thing I am doing let me know.
No comments:
Post a Comment