Dec 11, 2012

openSUSE Forums: switch Java versions for certain applications (android sdk)

openSUSE Forums
openSUSE Forums
switch Java versions for certain applications (android sdk)
Dec 11th 2012, 15:11

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.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

No comments: