I am trying to install Android Studio. On one PC everything works just fine, but on my desktop, I get the message, I should install the JDK or set a variable for JAVA_HOME.
As I already had the JDK installed (for eclipse) I continued setting a system variable for the JDK:
JAVA_HOME
C:\Progra~1\Java\jre8
I assumed that's the jdk directory, because the JDK install manager provided me this directory.
Now I get to see the android studio splash screen, but it gets interrupted by this message:
'tools.jar' seems to be not in Android Studio classpath.
Please ensure JAVA_HOME points to JDK rather than JRE.
I don't know how to proceed. Any suggestions?
EDIT:
I am running Windows 8.
The JAVA_HOME directory you provided is of JRE. Please ensure that there is a folder like this in your computer:
C:\Program Files\Java\jdk1.8.0
If it is not there please install JDK.
Then, Reset the environment variable of the JAVA_HOME to correct location.
Related
I have tried a few things including changing JDK_HOME to the current JDK, removing all jdk and installing jdk8, and reinstalling android studio, but the same issue persists.
I have used the program before and it was working a few days ago
(After wasting half a day on it, finally, I got it running)
I am running it on Windows 8.1. Also, I had JDK 1.7.0_13.
I tried the following:
Open Start menu > Computer > System Properties > Advanced System Properties In the Advanced tab > Environment Variables
Add new system variable JAVA_HOME that points to JDK folder, C:\Program Files\Java\jdk1.7.0_13
Just to be on the safer side, also add new system variable JDK_HOME that points to JDK folder, for example, C:\Program Files\Java\jdk1.7.0_13
Append new PATH in system variable that points to JDK folder, C:\Program Files\Java\jdk1.7.0_13
But still it didn't work. Then it struck me that might be, my Java version is old. I downloaded the latest version from here.
I uninstalled JDK 1.7.0_13 and installed version 8 i.e. JDK 1.8.0_131.
Now do all the above steps but, replace the path with C:\Program Files\Java\jdk1.8.0_131\ OR whichever your latest version is.
Success!! Now it works.
I have built my cordova app and getting "Requirements check failed for JDK 1.8" error message.
Uninstalling all java and installing jdk 1.8 not solved my problem.
D:\xampp\htdocs\aware>cordova run android
Android Studio project detected
ANDROID_HOME=C:\Users\Baha\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_221
Requirements check failed for JDK 1.8
ScreenShots:
You might have installed more than one Java (binaries) on your system. First of all, check this, by executing where java command in your cmd.exe (command line).
Most likely, you will see more than one java.exe installed, and if so, this may be the reason, despite installing new Java, your system still provides one more other version of it;
Even if you have set your %JAVA_HOME% environment variable accordingly, there might be another java.exe available in your environment, either because of having some other Java binaries' bin folder added in the System variables' (under Environment Variables) Path variable, or because of having it at some other place, which is also available through any other environment variable (for instance: System32 on Windows).
Check where java and see your Path environment variable under the System Variables.
My problem solved partially, I have changed the path and try to build with vs code, it works, but phpstorm still not build my app.
I am attempting to install the 64-bit version of Tizen SDK on my Win10 Home Laptop. However, every time I get the error that I either don't have java 8+ installed or that the JAVA_HOME environmental variable isn't set right.
Now I've read other questions on this, and I've set the JDK directory as first in the "Path" environmental variable. I've added the JAVA_HOME environ. var and pointed it at my JDK directory. I've rebooted twice throughout this (just in case).
I tried to install the 32-bit version of Tizen SDK, but immediately got the error that I'm not on a 32-bit OS.
I have d/l and installed Java 9 SDK and JRE. They're in
C:\Program Files\Java\jdk-9 &
C:\Program Files\Java\jre-9 respectively.
Here's my Path variable:
Path Variable Image
Any help would be mucho appreciated!
Response on Oct, 2017:
** So far Tizen studio installer can't recognize new version of Java. **
You need to install Oracle Java 8 for now.
Additional Checklist:
[✔] Tizen developers site states "Do not install OpenJDK". Make sure you are using OracleJDK instead of OpenJDK. Related links you might see:
Forum Post
[✔] There's a Tip&Tech document on Tizen Developers
Community called 'Guide for Setting JDK'. As you are having Issues, You may check it out.
Tizen: Guide for Setting JDK
[✔] I expect you are using the Latest Tizen Studio 2.0.
Latest Tizen Studio Download Link
Cause history says, Java compatibility Defers with IDE versions:
Tizen-sdk-for-wearable-setup Installation issue because of JAVA HOME
Edit on March, 2019:
Tizen-Studio now supports OpenJDK 10
To use Tizen Studio install Oracle Java Development Kit (JDK) 8, JDK 9, or OpenJDK 10 .
Prerequisites for the Tizen Studio
OpenJDK 10 and OpenJFX Installation Guideline on Tizen Developers Site
I was stuck there for a while, too. In addition to setting JAVA_HOME to C:\Program Files\Java\jdk-12.0.1 (no bin at the end), I also added C:\Program Files\Java\jdk-12.0.1\bin to the beginning of PATH; then it worked.
I've had the same problem, therefore i installed JDK8 from oracle website and the installer works fine. (no need to reboot) If you don't need specific JDK9 stuff, go with 8 and you will be good to go. Don't forget to update JAVA_HOME and Path to point to JDK8.
I have set as user variables CLASSPATH set to C:\Program Files\Java\jre1.8.0_144\lib, JAVA_HOME set to C:\Program Files\Java\jdk1.8.0_144
As system variables i've added to the existing Path this value C:\Program Files\Java\jdk1.8.0_144\bin and JAVA_HOME the same as above (even though i'm not sure the latter one is required).
PS. I have both JDK8 and 9 installed and Windows 10 64bit. I tried installing Tizen on debian using JDK9 and i got the same error, i'm sure that using JDK8 will work (need to check installation on OSX though)
Cheers!
On my M1 Mac with macOS 12, I was having trouble getting the Tizen package manager to run. It kept giving me:
Java Development Kit (JDK) was not found on your computer. To use the Tizen Studio, you need to install the JDK 8 or later. Please go to http://www.oracle.com/technetwork/java/javase/downloads and download a JDK.
Deleting ~/.package-manager solved the issue.
In my case adding "C:\Program Files\Java\jdk-12.0.2\bin" (with the quotes) to the PATH did the trick, i.e. the installer run successfully
Information on the tizen website is incomplete. On Windows 10 using OpenJDK follow the article and you need to enter another environment and system parameters after adding Java_home.
Parameter is "PATH" value is "%JAVA_HOME%\bin" otherwise Tizen Studio installation wont recognize it.
I download the IDE of version 3.2 and install the open jdk10, IDE can load successfully, but load the emulator failed when click the tools -> emulator manager.
error: could not create the java virtual machine.
my setting:
path: %JAVA_HOME%\bin
JAVA_PATH: c\jdk-10
what's the problem here? please give some suggestions.
The only thing that worked for me in the end was:
Uninstall the recent Java version and install Java SE 8u231.
After that, I tried Tizen 1.3, and it worked.
I don't know if the newer versions works, but the above worked for me for now.
I am working with the Eclipse ADT+ADK bundle, adt-bundle-windows-x86-20131030 on Win 8. I also installed Java JDK 1.6 and i see it was installed in
C:\Program Files (x86)\Java\jdk1.6.0
Android ADT is working fine for me (it compiled few projects i tried - hello world and I was able to run this app on device as well)
I know the Eclipse-ADT uses JAVA_HOME variable to locate the JDK, but strangely when I checked my Windows 8 environment Variables there is no JAVA_HOME variable, which puzzled me.
How is Eclipse-ADT getting JDK path?
Also is there any other preference/setting which tells Eclipse ADT about Java ADK path?
Note: I have another JDK 1.7 installed at C:\Program Files\Java\jdk1.7.45
For Android SDK PATH, you can modify SDK location in subpage Android of dialog 'Preferences' (open it from menu "Window-Preferences").
For JDK, it's fine if javac can be found from environment variable PATH.
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