[Q] Building CyanogenMod from source can't seem to install java - Samsung Infuse 4G

Hey everyone!
Long story short, I built a new desktop and can not for the life of me get java installed correctly.
IE
Code:
/bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version
of javac.
Your version is: /bin/bash: javac: command not found.
The correct version is: 1.6.
Please follow the machine setup instructions at
http://source.android.com/download
I have searched and tried many tutorials from various places to no avail.
My setup as current: Ubuntu 10.10 64, I used Java6u31-i586.bin
I used this code to set java:
Code:
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/32/jdk1.6.0_31/bin/java" 1
sudo update-alternatives --set java /opt/java/32/jdk1.6.0_31/bin/java
any help or direction would GREATLY apreciated!!!
Thanks in advance!

You have to use sun Java 6... jdk .... sudo apt-get update.... sudo apt-get install sun-java6. You can't build gingerbread with Java 5, mist be 6
Sent from my SAMSUNG-SGH-I997 using xda premium

thats very true! however I am using 6 the problem is Ubuntu has taken java out of there repositories due to a security flaw so you have to install it manually.

Check How-to-geek, they had a script posted there about a month ago.
CM7 Infuse - XDA Premium

marty331 said:
Check How-to-geek, they had a script posted there about a month ago.
CM7 Infuse - XDA Premium
Click to expand...
Click to collapse
Sweet!! Thanks
Sent from my SGH-I997 using xda premium

seemles said:
Sweet!! Thanks
Sent from my SGH-I997 using xda premium
Click to expand...
Click to collapse
http://christiansons.net/mike/blog/2010/07/sun-java-6-on-ubuntu-10-04-10-10-and-later/

marty331 said:
http://christiansons.net/mike/blog/2010/07/sun-java-6-on-ubuntu-10-04-10-10-and-later/
Click to expand...
Click to collapse
Thanks for all the help guys! I actually ended up finding a super easy setup. Its a mix between 2 tutorials if all goes well after my repo syncs ill make a tutorial my self. There seems to be alot of left out small but important steps that would greatly benefit ppl new to Linux but not necessarily noobs to deving.
Sent from my SGH-I997 using xda premium
Update : After a weeks of searching reading reinstalling again and again and again my whole problem ended up being my new PC had too much balls lol. Set my BIOS levels to safest possible and boom! In only 14 min I compiled CM7 lol!
That's what an 8 core 3.1 Ghz CPU and a 5.2 Ghz FSB can do! Hehe :-D

Related

CyanogenMod question?

I cant seem to find a guide on how you do this, can someone link me or explain thanks.
So do i do all this after i've flashed CyanogenMod?
Build Instructions Setup a standard CyanogenMod 9 build environment (there are plenty of tutorials on the web already on how to do this). Then
1. Add add the following entries to your local manifest
Code:
where you replace XXX with your device (i815, p6200, p6210, p6800, p6810, or t869). 2. Make sure that your device is running the newest build of CyanogenMod 9 or stock ICS if your device has it. 3. Make sure your device is plugged in and has debugging enabled. 4. Run the extract-files script from your particular device tree. 5. Run vendor/cm/get-prebuilts 6. Your sources are now ready, to build run
Code:
$ . build/envsetup.sh # this sets up the build environment $ lunch cm_XXX-userdebug # this selects your device $ mka bacon # this builds CM
Click to expand...
Click to collapse
Sent from GT-P6800 using xda premium
Don't need to do any of it. Those are instructions for building the Rom. Just flash wipe with ioceras cwm and enjoy.
Sent from my GT-P6800 using xda premium
Awesome, thanks.
Sent from GT-P6800 using xda premium

Who Would Like an All In One Android Dev Set Up Script?

Hey everyone, I am thinking about writing a shell script for getting all the stuff you need for andoid dev set up. I think this would be really useful for some people and would save a lot of time for aspiring developers. Of course this would be for linux at first and it would more or less include:
1. install repo and offer to download aosp/cm9/any other you want source
2.set up basic dependencies for building source and such, including proper java version
3. install rom kitchen
4.install apktool/apkmanager and all its stuff
5. add stuff to path and add useful aliases
and anything else you guys want.
Let me here some input here on what you think before I spend a bunch of time doing this, and if people seem to like it I will go ahead.
bump
Sent from my MB865 using xda premium
Yes, please!
Sent from my SAMSUNG-SGH-I747 Anti-Motorola Ballistic Missile
would be awesome dude
This may be handy as many get stuck with the Java version install
Sent from the Bat Cave
Yes please do
Sent from my PC36100 using xda premium
That would be awesome.
Sent from my Paranoid Android JB'd Infuse 4G using Tapatalk 2

[Jelly Bean]Deodexing services.odex and SecEmail.odex

I'm placing the decompile code to deodexing servies.odex and Email.odex because many guys are asking about the way to deodex these files from Samsung Galaxy II EPIC 4G Touch (D710) forum.
services.odex: (you don't need all bootclasspath in here. But if you have any issue deodexing services.odex, this would be the fastest way to decompile it)
java -Xmx1024m -jar baksmali-1.4.1.jar -a 17 -d 'source odex dir' -d 'deodexed dir here' -c :access.control.jar:allshare.jar:allsharelib.jar:am.jar:android.policy.jar:android.test.runner.jar:apache-xml.jar:bmgr.jar:bouncycastle.jar:bu.jar:com.android.future.usb.accessory.jar:com.android.location.provider.jar:com.google.android.maps.jar:com.google.android.media.effects.jar:com.google.widevine.software.drm.jar:com.samsung.device.jar:com.yamaha.android.media.jar:core.jar:core-junit.jar:CustFeature.jar:ext.jar:framework2.jar:framework.jar:GlobalConfig.jar:ime.jar:input.jar:java.awt.jar:javax.obex.jar:kies_feature.jar:libvtmanagerjar.jar:minimode.jar : monkey.jar : org.simalliance.openmobileapi.jar : pm.jar:requestsync.jar:sec_edm.jar:sec_feature.jar:sec_platform_library.jar:seccamera.jar:secface.jar:sechardware.jar:secmediarecorder.jar:svc.jar:twframework.jar:uiautomator.jar -x "source odex dir\services.odex"
java.exe -Xmx1024m -jar baksmali-1.3.2.jar -d 'source odex dir' -d 'deodexed dir here' -c :access.control.jar:allshare.jar:allsharelib.jar:am.jar:android.policy.jar:android.test.runner.jar:apache-xml.jar:bmgr.jar:bouncycastle.jar:bu.jar:com.android.future.usb.accessory.jar:com.android.location.provider.jar:com.google.android.maps.jar:com.google.android.media.effects.jar:com.google.widevine.software.drm.jar:com.samsung.device.jar:com.yamaha.android.media.jar:core.jar:core-junit.jar:CustFeature.jar:ext.jar:framework2.jar:framework.jar:GlobalConfig.jar:ime.jar:input.jar:java.awt.jar:javax.obex.jar:kies_feature.jar:libvtmanagerjar.jar:minimode.jar : monkey.jar: org. simalliance.openmobileapi.jar : pm.jar:requestsync.jar:sec_edm.jar:sec_feature.jar:sec_platform_library.jar:seccamera.jar:secface.jar:sechardware.jar:secmediarecorder.jar:services.jar:svc.jar:twframework.jar:uiautomator.jar -x "source odex dir\SecEmail.odex"
Be sure to use baksmali v1.3.2 instead of 1.4.1.
v1.4.1 does not decompile the SecEmail.odex correctly (I see that one case opened to google code development and it's pending. But it could be resolved using this way.
Note: jar file list should be different based on your provider. The above example is based on Sprint Galaxy II D710 Epic 4g Touch and leaked ROM FL16.
I hope this removes lots of headaches during deodexing JB rom.
Why didn't you post this in the Epic 4G Touch forum?...
Sent from my SPH-D710 using xda premium
Mattix724 said:
Why didn't you post this in the Epic 4G Touch forum?...
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Either he wanted to make it available to anyone that might be having problems or he's just messing with your as s
Sent from my SPH-D710 using Xparent ICS Tapatalk 2
elijahbrown said:
Either he wanted to make it available to anyone that might be having problems or he's just messing with your as s
Sent from my SPH-D710 using Xparent ICS Tapatalk 2
Click to expand...
Click to collapse
LOL, I'm going to wager it's to make it available to anyone having trouble as the only items specific to our phones have been stated in the OP
Guys, don't get me wrong!
I'm sharing what I've found with my own time and I provided it to you because of you guys asked me to do it. What you need to do is, just using it or say 'thank you'.
It's not just for Epic 4g touch and I wanted share my findings with everyone. Like I said, there's the same issue on google code development site and I solved it.
kobridge said:
Guys, don't get me wrong!
I'm sharing what I've found with my own time and I provided it to you because of you guys asked me to do it. What you need to do is, just using it or say 'thank you'.
It's not just for Epic 4g touch and I wanted share my findings with everyone. Like I said, there's the same issue on google code development site and I solved it.
Click to expand...
Click to collapse
It's greatly appreciated Ko, I'd been beating my head against a wall with these jb leaks
Sent from my SPH-D710 using xda premium
Stryke_the_Orc said:
It's greatly appreciated Ko, I'd been beating my head against a wall with these jb leaks
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Thanks for warm words!
I appreciate the information. But let's not get started with the Thanks thing again... we all know how that went earlier this year when you felt like your work wasn't appreciated because there was more downloads than thanks.
Sent from my SPH-D710 using xda premium
Mattix724 said:
I appreciate the information. But let's not get started with the Thanks thing again... we all know how that went earlier this year when you felt like your work wasn't appreciated because there was more downloads than thanks.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Mattix, that's not what I'm talking about. Please don't try to drive me as you want (all problems start from there) - XDA rule. You please do focus on yours and I'll do mine.
I'll say thanks for the information on deodexing services.jar
I'm just going to leave it at that.
Sent from my SPH-D710 using xda premium

Cm 11 -experimental-

Hi,
Where I can get the .zip for the experimental builds?
Not the nightlies
If these .zip files doesn't exist, how can I do my own? Where I can find a guide or somenthing to do that.
Thanks!
Sent from my SGH-T699 using XDA Premium 4 mobile app
falle21 said:
Hi,
Where I can get the .zip for the experimental builds?
Not the nightlies
If these .zip files doesn't exist, how can I do my own? Where I can find a guide or somenthing to do that.
Thanks!
Sent from my SGH-T699 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I don't recommend trying to set up a rig to build for novice users. With that said, it is something you can do with some time and effort. If you choose to build Android on your machine, it will (probably) be tough. It also may take your machine hours to do the work. Keep that in mind..
Google is your friend. Keep in mind, you cannot compile Android on Windows, so you will need a virtual machine or a (dual boot) Linux partition on your hard drive.
Once you have the basics in place, I'm sure the rest of us can help you iron out any little issues with linking.
-----
*** Note to all forum members: Thanks in advance for NOT making this thread a flame war about operating systems! Thank you!
Thanks a lot, a google about this but i cant find good information. Thanks for the answer
Sent from my SGH-T699 using XDA Premium 4 mobile app
falle21 said:
Thanks a lot, a google about this but i cant find good information. Thanks for the answer
Sent from my SGH-T699 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
The CyanogenMod Wiki has some good information for how to get started:
http://wiki.cyanogenmod.org/w/Build_for_apexqtmo (This guide has a few things specific to building CM 10.2, but you change the repo init line to read cm-11.0 instad, and you'll be fine to follow along with what I'm mentioning)
To build the Hypnotoad builds, you follow that through the point that you are done with Section 2.7 (Get prebuilt apps)
Then instead of running breakfast, and trying to extract blobs, add the manifest linked in the development thread to .repo/local_manifests.
Run repo sync again,
apply the cherry pick list (after envsetup, repopick <list>)
Then skip to section 2.11 (Start the build)
If you want to use ccache to speed up subsequent builds, follow section 2.10
Thanks! I gonna research and try.
Thanks for the information
Sent from my SGH-T699 using XDA Premium 4 mobile app

(Q) java/build environment

I'm on the newest version of Ubuntu. I've set up a build environment and I've init my repo using a custom ROMs manifest. Current branch 4.4.4_r2.0.1 is kk-ras-mr4_r1. Now when I get to $ make -jx (where x is the number of jobs) to build boot.IMG, system.IMG, etc I get a error. Your version is: java version 1.7.0_67
The correct version is: java we 1.6
Is their apt-get command to install it? Every site/ guide I've Googled has let me down.
Sent from my Nexus 5 using XDA Free mobile app
Bump
Sent from my Nexus 5 using XDA Free mobile app

Categories

Resources