Guest Phoenix Silver Posted July 29, 2011 Report Posted July 29, 2011 (edited) i submit this error because of the new jdk and jre 1.7 javac has been updated to 1.7 javac: target release 1.5 conflicts with default source release 1.7 i have changed all lines in build/core/combo/javac.mk to 1.7 but it gives hundred of errors (bad classe) I think cm7 need an update to correct this Bug written here bug reported Edited July 29, 2011 by Phoenix Silver
Guest t0mm13b Posted July 29, 2011 Report Posted July 29, 2011 i submit this error because of the new jdk and jre 1.7 javac has been updated to 1.7 javac: target release 1.5 conflicts with default source release 1.7 i have changed all lines in build/core/combo/javac.mk to 1.7 but it gives hundred of errors (bad classe) I think cm7 need an update to correct this Bug written here bug reported Yes, am experiencing the same issue :) Hopefully, CM7 team will take notice of the bug submission.... :)
Guest sm4tik Posted July 29, 2011 Report Posted July 29, 2011 (edited) ..the downside of living with rolling releases.. I suspected there might be some trouble ahead with that update. Have to see if I still have the older packages in my cache. And I think there is a mirror hosting older packages also, hope it still exists. I hope this gets attention and a fix soon :) edit: downgraded and added to IngnorePkg for now. Will have to keep an eye on CM7 changes before letting those update again. Edited July 29, 2011 by sm4tik
Guest Phoenix Silver Posted July 30, 2011 Report Posted July 30, 2011 (edited) for arch linux users : go in /var/cache/pacman/pkg do sudo pacman -U jdk6 sudo pacman -U jre6 problem solved for this OS and add ignorepkg = jdk jre in /etc/pacman.conf (both will be ignored in system updates) Edited July 30, 2011 by Phoenix Silver
Guest t0mm13b Posted July 30, 2011 Report Posted July 30, 2011 for arch linux users : go in /var/cache/pacman/pkg do sudo pacman -U jdk6 sudo pacman -U jre6 problem solved for this OS and add ignorepkg = jdk jre in /etc/pacman.conf (both will be ignored in system updates) That does the trick. Nice! :)
Guest sm4tik Posted September 13, 2011 Report Posted September 13, 2011 for arch linux users : go in /var/cache/pacman/pkg do sudo pacman -U jdk6 sudo pacman -U jre6 problem solved for this OS and add ignorepkg = jdk jre in /etc/pacman.conf (both will be ignored in system updates) Just a bit of a bump on this. Jre and jdk were dumped to aur a while ago bacause of a change in their licence. I've replaced these with openjdk6 and have not experienced any problems with it. Openjdk6 is mentioned as a dep in CM wiki, so it should be ok for future use also. Jre and jdk are both available as separate packs for xxx6 and xxx7 so if you choose/have to keep them, it's also safe to remove those from the ignorepkg line in pacman.conf.
Guest Phoenix Silver Posted September 14, 2011 Report Posted September 14, 2011 Just a bit of a bump on this. Jre and jdk were dumped to aur a while ago bacause of a change in their licence. I've replaced these with openjdk6 and have not experienced any problems with it. Openjdk6 is mentioned as a dep in CM wiki, so it should be ok for future use also. Jre and jdk are both available as separate packs for xxx6 and xxx7 so if you choose/have to keep them, it's also safe to remove those from the ignorepkg line in pacman.conf. OKi ty :) I'll give it a try There are other things than cm7 to try :D
Guest sm4tik Posted September 15, 2011 Report Posted September 15, 2011 OKi ty :) I'll give it a try There are other things than cm7 to try :D Yeah, originally I had to keep jre6 because of swingOSC, but it seems to work ok with openjdk now. Some things are buggy with openjdk, but it's also developed quite rapidly :)
Guest sej7278 Posted September 16, 2011 Report Posted September 16, 2011 its not a cm7 bug, its upstream - all over the place google say android requires jdk 1.6 what distro are you using if it replaces 1.6 with 1.7 instead of installing them alongside? debian/fedora don't break like this.
Guest wbaw Posted September 16, 2011 Report Posted September 16, 2011 (edited) I guess they're using arch or ubuntu. Fedora uses openjdk 1.6.0 Edited September 16, 2011 by wbaw
Guest sm4tik Posted September 16, 2011 Report Posted September 16, 2011 (edited) its not a cm7 bug, its upstream - all over the place google say android requires jdk 1.6 what distro are you using if it replaces 1.6 with 1.7 instead of installing them alongside? debian/fedora don't break like this. That would be arch of the two wbaw listed. I don't know why 1.7 originally replaced 1.6 (and didn't think about it until now), but now that these were dumped to a user maintained repository, it seems they should co-exist just fine. Edited September 16, 2011 by sm4tik
Guest sm4tik Posted September 16, 2011 Report Posted September 16, 2011 I guess they're using arch or ubuntu. Fedora uses openjdk 1.6.0 So does arch, but jre/jdk were also available (and still are, just not in the official repos).
Guest sej7278 Posted September 18, 2011 Report Posted September 18, 2011 So does arch, but jre/jdk were also available (and still are, just not in the official repos). i don't think openjdk is supported or approved build platform for android, i know i certainly couldn't get it to work when i tried a while back. i'm pretty sure there's a hardcoded reference to sun-jdk-6 in the cm7 source. the way debian does it is a package for jdk6 and another one for jdk7, then its uses alternatives to allow you to switch between them (and openjdk/gcj) you can do the same on fedora if you manually download the rpm's from sun. its always amused me that sun's motto for java was "write once, run anywhere" which is complete bullshit really, as the target platform for java is the jre which can vary massively not only between operating systems, but also within them. it should be "write once; run on a specific jre, instruction set and os; otherwise rewrite completely".
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now