Restarted the computer after JDK installation. Problem solved. thanks
I am trying to install Android Studio, it is require JDK version 1.7 or higher.
Downloaded this:
android-studio-bundle-135.1641136.exe
jdk-8u25-windows-i586.exe
Installed jdk first: C:\Program Files\Java\jdk1.8.0_25\bin\java.exe
Now installing android which asking for JDK, provided that jdk folder.
showing this problem:
any help?
:) advance thanks.
Desktop Computer with win7 32.
Did you try selecting the root folder and not the bin folder? That would be my guess. Hope this helps.
This is because you have downloaded wrong JDK. You need to download JDK for Oracle. Your downloaded JDK has no bin or java.exe file so it throws that error. So you need to download JDK 1.7or JDK 1.8 of Oracle. You can download JDK from here
https://jdk7.java.net/download.html
add new variable to your Environment variables :
computer properties -> advanced system settings -> (tab) advanced -> environment variables ->
(in system variable ) new : variable name = JAVA_HOME , variable value = jdk path
example: C:\Program Files\Java\jdk1.8.0_25
Do Not include \bin when you point to your JDK Location.
install jdk-8u25-windows-i586.exe
Close android-studio-bundle-135.1641136.exe
Reinstall android-studio-bundle-135.1641136.exe
Just -_-
Related
i am using windows 8.1
here is the error
cmd seems to see the java -version but not my android studio.
here is my system variable
AndroidStudio is not asking for a JDK, but for a JRE. Try changing the JAVA_HOME to the JRE bundled in the JDK:
C:\Progra~1\Java\jdk1.8.0_131\jre
If above don't work, try with:
C:\Progra~1\Java\jdk1.8.0_131\jre\bin
If neither of them works, check if your JDK is a 64-bit one since the AndroidStudio is asking for a 64-bit java version.
EDITING:
Also try copying the content of C:\Progra~1\Java\jdk1.8.0_131\jre to C:\Program Files\Android\Android Studio\jre\jre because it seems that AndroidStudio is checking for java in that path.
Delete the studio64.exe.vmoptions under C:\Users...AndroidStudio3.2\config.
edit the project's gradle.properties and add:
org.gradle.java.home = C\:\\Program\ Files\\Java\\jdk1.8.0_131
What is the correct path of JRE8 that I put in sonarlint.ls.javaHome in VSCode in MacOS so that it works correctly?
I have tried this:
\\Library\\Internet Plug-Ins\\JavaAppletPlugin.plugin\\Contents\\Home\\bin
/Library/Internet\\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/
Install JDK and set "/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home" in VSCODE settings under sonarlint.ls.javaHome
Ok, I have the same issue and there is one important message: you must use JRE8 and not the newest version of JRE (e.g. JRE 10) for the plugin "SonarLint" (sonarsource.sonarlint-vscode). With JRE9 or newer it doesn't work!
This path worked for me:
"sonarlint.ls.javaHome": "/Library/Internet PlugIns/JavaAppletPlugin.plugin/Contents/Home"
I installed android studio on my laptop .. (OS -> Windows 8)
when I try to start it , i get this message
"tools.jar' seems to be not in Android Studio classpath . Please ensure you have JAVA_HOME points to JDK rather than JRE"
How can I fix this ?
and please can you write the solution in details ? :) .. i'm new to JDK and this stuff ..
Thanks in advance :)
JRE is the Java Runtime Environment and now that you will be developing code, you need the Java SE Development Kit (JDK) which includes the JRE plus tools that Studio will need to compile your projects. You can get the version you need at http://www.oracle.com/technetwork/java/javase/downloads/. Point JAVA_HOME at the place you install this.
You must be providing wrong path to your JAVA_HOME environment variable. In my machine I have JAVA_HOME configured as follows:
JAVA_HOME C:\Program Files\Java\jdk1.8.0_05
Note: Dont provide \bin folder.
Try to enter in the path JAVA_HOME environment variable
the jdk not the jre example :
C:\Program Files\Java\jdk1.8.0_20
Change JAVA_HOME to JDK, for example:: on Windows 8.1 it can be C:\Program Files\Java\jdk1.8.0_45 . This solution workt for me. Before I had JAVA_HOME point to JRE.
You can restart Your system after that for be sure.
Then type java --version in cmd
I went to the Oracle site, downloaded and installed Java Platform (JDK) 7 on a Windows 7 64 bit virtual machine. I added the path to the c:\program files\Java\jdk1.7.0\bin to the path environment variable. I even deleted c:\windows\system32\Java.exe as recommended by someone. I was essentially following this: "Android Create" call fails in windows 7 - missing JDK
When I install the ADT it gives me the error JDK could not be found. Download the latest JDK. Why?
Thanks.
this is caused because the Android DK finds java in the c:\windows\system32\ folder before it finds the JDK one.
To resolve this edit your PATH environment variable and put the JDK path before the c:\windows\system32\ path.
Just in the ADT installer , press back when the installer promite for No JDK Found then press next, the installer will find the JDK, for sure this is a common bug
Does that happen when you open eclipse?
I'm thinking in two possible problems. Here is one possible solution: Eclipse - no Java (JRE) / (JDK) ... no virtual machine
If you already got this, go to Window -> Android SDK and AVD preferences
The first "preference" should ask you your Android SDK folder. you need to set this correctly.
Your JDK installation is not proper.
Reinstall JDK. It should be working fine.
I also had this problem once. I have done the above to resolve this issue.
You should not delete C:\Windows\System32 folder for this issue, It might lead to OS problems.
adil's answer is the one which finally worked for me (although I had added the jdk\bin to the path and created\set the JAVA_HOME to the same); moving the jdk\din directory before the win\sys32 in the PATH finally allowed me to install the android sdk on win7/64bit
I am using Netbeans 6.7. I had first installed Java 1.5 before installing Netbeans. When i installed Netbeans it took Java 1.5 as the default version. Then i installed Java 1.6 on my machine. I need to change the default JDK of my netbeans to 1.6 not only to a specific project but to the whole Netbeans application.
You can change the JDK for Netbeans by modifying the config file:
Open netbeans.conf file available under etc folder inside the NetBeans installation.
Modify the netbeans_jdkhome variable to point to new JDK path, and then
Restart your Netbeans.
In my Windows 7 box I found netbeans.conf in <Drive>:\<Program Files folder>\<NetBeans installation folder>\etc . Thanks all.
For anyone on Mac OS X, you can find netbeans.conf here:
/Applications/NetBeans/NetBeans <version>.app/Contents/Resources/NetBeans/etc/netbeans.conf
In case anyone needs to know :)
open etc folder in netbeans folder then edit the netbeans.conf with notepad and you will find a line like this :
Default location of JDK, can be
overridden by using --jdkhome
:
netbeans_jdkhome="G:\Program
Files\Java\jdk1.6.0_13"
here you can set your jdk version.
on Fedora it is currently impossible to set a new jdk-HOME to some sdk. They designed it such that it will always break. Try --jdkhome [whatever] but in all likelihood it will break and show some cryptic nonsensical error message as usual.
Fix this by moving my jdk folder to other disk
Either change the jdk home in the application preferences or look for the application's config files.
On Mac OS X, its in a netbeans.conf file, and look for the jdk home value.
here: