Error Could Not Find Jdk Tools.jar Please Install Jdk 6
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have could not find tools.jar gradle Meta Discuss the workings and policies of this site About Us
Download Jdk
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with jdk 8 download us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How do I fix JDK not found error when building Android source? up vote 3 down vote favorite I am trying to build the Android source by the steps provided here. However I have troubles with my JDK. When launching: lunch full-eng I get the following error: /bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: Permission denied /bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: Permission denied /bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: Permission denied /bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied build/core/config.mk:344: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop. ** Don't have a product spec for: 'full' ** Do you have the right repo manifest? So I tried to install the JDK correctly by the following steps: Step 1 Uninstall everything JAVA related by following these steps. Step 2 Install correct JAVA by following these steps. I used the default installer option and version 6, not 7 or 8 Step 3 Here I am simply following this answer. sudo gedit .bashrc Edit the file at the bottom by adding those lines JAVA_HOME=/usr/lib/jvm/java-6-oracle export JAVA_HOME # replacing /path/to/androidsdk/ with correct path of course.. export PATH=${PATH}:/path/to/androidsdk/android-sdk-linux/platform-tools PATH=$PATH:$JAVA_HOME # Variable ANDROID_JAVA_HOME ANDROID_JAVA_HOME=/usr/lib/jvm/java-6-oracle export ANDROID_JAVA_HOME PATH=$PATH:$ANDROID_JAVA_HOME Step 4 Test what I've done so far: ...:~$ echo $JAVA_HOME /usr/lib/jvm/java-6-oracle ...:~$ java -version java version "1.6.0_45" Java(TM) SE Runtime Environment (buil
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million http://stackoverflow.com/questions/17988110/how-do-i-fix-jdk-not-found-error-when-building-android-source programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Android ICS Compilation Issue up vote 5 down vote favorite 1 I successfully Downloaded the source code for Android 4.0.3. But I am unable to compile it on my machine. My Machine configuration is UBUNTU 11.10 64 bit,4 GB http://stackoverflow.com/questions/10124522/android-ics-compilation-issue RAM When I am running the lunch command getting the following error. /bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied /bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: Permission denied /bin/bash: build/core/find-jdk-tools-jar.sh: Permission denied build/core/config.mk:268: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop. ** Don't have a product spec for: 'full' ** Do you have the right repo manifest? JDK is already in a path.When I Run the Command java -version I am getting following OutPut java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) Can Anyone Help to proceed? android android-4.0 share|improve this question asked Apr 12 '12 at 13:25 Ashwin N Bhanushali 2,54132552 add a comment| 4 Answers 4 active oldest votes up vote 6 down vote accepted If you check the script build/core/find-jdk-tools-jar.sh, you can see that it first checks an environment variable called ANDROID_JAVA_HOME. If you set the ANDROID_JAVA_HOME environment variable to your JDK path, it should f
från GoogleLogga inDolda fältSök efter grupper eller meddelanden
Apps Gapps MX Player Adaway ViPER4Android Audio FX Official XDA App All Apps & Games XDA Assist ANALYSIS Editorials & Opinion Analysis Google’s Pixel Exclusitivity Shows Why Carrier Exclusives Suck for ConsumersRenouncing the Nexus Legacy Priced the Pixel into a Battle it May Not WinExploring Andromeda: A Look at the Challenges Awaiting Google’s Next VoyageMediatek Officially Unveils the 10 nm Helio X30 and 16 nm Helio P25Android Gaming Graphics at a Standstill: What Is Holding Us Back, and the Path Forward Opinion Google’s Pixel Exclusitivity Shows Why Carrier Exclusives Suck for ConsumersAs “Safe” Units Burn, Trust in Samsung Fades: The Recall’s Respectable Merits Have Been TarnishedWhy You Should Prioritize Your API Strategy Before its DesignA Note on Google Assistant’s Fluidity and Speech RecognitionRenouncing the Nexus Legacy Priced the Pixel into a Battle it May Not Win Developments Lior Tal Replaces Kirt McMaster as Cyanogen Inc. CEOLlabTooFeR Leaks System Images for Pixel and Pixel XLWhy You Should Prioritize Your API Strategy Before its DesignAmazon Offers up to a $2.5 Million Prize for a Year-Long Alexa CompetitionJCase: “Verizon Pixel Phone May Not Be Bootloader Unlockable” Discuss What Phone Will Benefit Most from the Note 7’s Misfortune?As “Safe” Units Burn, Trust in Samsung Fades: The Recall’s Respectable Merits Have Been TarnishedA Note on Google Assistant’s Fluidity and Speech RecognitionHow Much Do You Think the New Pixel and Pixel XL are Worth?Facebook Announces Messenger Lite For Older Devices and Emerging Markets Xda news What Phone Will Benefit Most from the Note 7’s Misfortune?Lior Tal Replaces Kirt McMaster as Cyanogen Inc. CEOSamsung Temporarily Halts Production of Note 7; Carriers Halt SalesThe Android Cast: Episode 21 – “Pixel Imperfect”Google’s Pixel Exclusitivity Shows Why Carrier Exclusives Suck for Consumers LOGIN Jump back in Remember Me? Forgot your password? REGISTER Takes just a sec! search plus search plus Forums Google Pixel XLGoogle PixelBLU R1 HDSamsung Galaxy Note 7OnePlus 3 Analysis What Phone Will Benefit Most from the Note 7’s Misfortune?Lior Tal Replaces Kirt Mc