Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I would like to compile a build for my android device (N4) with my debian (jessie).

I read that I must have Java 6, but eclipse which I sometimes use seems to need java 7.

For example, I uninstalled java so eclipse, then installed openjdk-6, at this point I have 1.6 java version but reinstalling eclipse update it to 1.7 !

What did I miss ?

share|improve this question

closed as unclear what you're asking by slm, jasonwryan, cuonglm, Networker, Shadur Sep 5 at 5:13

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Wait, what is your right now problem? IMO, you just have to install Eclipse with apt and should be ready. –  Braiam Jan 18 at 18:22

1 Answer 1

up vote 0 down vote accepted

You're fine using java 7 to compile java 6 sources, it's backward compatible. If you are using the android plug-in with eclipse, you should get warnings for using java 7 features, and at any rate, when you go to compile any 1.7 specific code (for each loops, <>, etc.), you'll get an error. These are mostly trivial things that are easy to correct.

So when it says you must have java 6, what it means is you must have at least java 6. I use 7 to compile android stuff.

share|improve this answer
    
Well maybe you understood that I wanted to compile an app, but I want to compile a ROM, android itself, and Google clearly says that it needs to be built with java 6. Anyway I tried and I'm getting an error apparently linked to java 7 (groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/…) I guess that there's something I don't know how to do, but what ? Force eclipse installation without its dependancies ? –  Zil0 Jan 21 at 16:48
    
Found a solution, java version was not the problem, sorry ^^ –  Zil0 Jan 21 at 16:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.