Unable to open Android SDK Manager - java

I have downloaded the latest ADT Bundle 64 bit from http://developer.android.com/sdk/index.html#download.
I have 64 bit JDK 1.7 version and I have set the System variable in the Path
path - C:\Program Files\Java\jdk1.7.0_60\bin
JAVA_HOME - C:\Program Files\Java\jdk1.7.0_60
I have unzip the zip file. I have tried to run the SDKManager.exe but nothing happened.
The I tried to open
E:\adt-bundle-windows-x86_64-20140624\sdk\tools\android.bat in the command prompt.
and I have got the following error.
E:\adt-bundle-windows-x86_64-20140624\sdk\tools>android.bat
'"E:\ADT-BU~1\sdk\tools\lib\\find_java.exe" -s' is not recognized as an internal or external command,
operable program or batch file.
ERROR: No suitable Java found. In order to properly use the Android Developer
Tools, you need a suitable version of Java JDK installed on your system.
We recommend that you install the JDK version of JavaSE, available here:
http://www.oracle.com/technetwork/java/javase/downloads
If you already have Java installed, you can define the JAVA_HOME environment
variable in Control Panel / System / Avanced System Settings to point to the
JDK folder.
You can find the complete Android SDK requirements here:
http://developer.android.com/sdk/requirements.html
I have a 64 bit JDK 1.6 which I am unable to uninstall from control panel for some reason. But this path is not there in Environmental Variables. From My eclipse I am able to run Java Programs which means by JDK is working. But know why this error is coming ?

Related

Failed to apply plugin 'net.minecraftforge.gradle'. Found java version 16.0.1. Versions 16 and newer are not supported yet

Using Eclipse on Windows 10, I am trying to build the Minecraft Forge MDK, but Gradle tells me it can only find Java 16. Everything was working fine a week ago.
I don't have Java 16 installed except it's default installed for Eclipse.
My JAVA_HOME path is set to
C:\Program Files\Java\jdk1.8.0_291\bin .
Java 8 is installed and the build path on Eclipse is set to
C:\Program Files (x86)\Java\jre1.8.0_291
Adding an org.gradle.java.home set to the same path as my JAVA_HOME returns an error saying there is no valid java home. I am unsure what to do.

My eclipse won't work with my java [duplicate]

I was trying to set up Eclipse for trying my hand at Android app dev.
I downloaded Eclipse and tried to run it... discovered I needed Java JDK. Googled and found JDK 7u40 (jdk-7u40-windows-x64.exe) and installed it. The install seemed to have gone dandy but when I tried to run Eclipse I got an error as well as if I try java version in cmd.
Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
I went to regedit, HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft and Java Runtime Environment doesn't exist in there. Seems like this is more of a symptom than the root cause of my problems.
My PATH looks like
PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program File
s (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Window
s;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Progra
m Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Window
s Live\Shared;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\AIR\bin;C:
\Program Files (x86)\nodejs\;C:\SDK\Android\tools;C:\SDK\Android\platform-tools;
C:\SDK\ANT\apache-ant-1.9.2\bin;C:\Program Files\Java\jdk1.7.0_40\bin\
%JAVA_HOME% = C:\Program Files\Java\jdk1.7.0_40
I'm running Windows 7 Pro 64-bit
I did already read through Error when checking Java version: could not find java.dll and linked materials
Finally found a forum post that outlined what the registry is supposed to look like when not broken.
Added key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
Added String Value CurrentVersion = 1.7
Added key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7
Added String Value JavaHome = C:\Program Files\Java\jre7
Running cmd java -version and Eclipse now works
You can tell eclipse which JRE to use in the eclipse.ini. If you've
installed bundles that require 1.7 in your IDE you will need a 1.7 JRE
to run the IDE itself.
add the below lines to eclipse.ini file
-startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
-vm C:\Program Files (x86)\Java\jre7\bin\javaw.exe
.
.
.
You can try reinstall your JDK. I've had this problem because I uninstalled so many java things in my PC. And when I open Eclipse, the error occurred.
A 32 bit eclipse cannot load a 64 bit Java Runtime Environment.
Try again with a 32 bit Java Runtime Environment, or (preferred) upgrade your Eclipse to a 64 bit version.
Also, a good idea (from the command line)
C:> java -version
Which should give you details about your JVM. If it doesn't work, focus on fixing that before fixing Eclipse's use of Java.
As most of us suggested to edit the registry, but in case you don't want to, because it's risky or you don't have permissions to do so, you can uninstall all the java version, restart your machine, install desired java version, make sure to set path settings. This worked for me.
I was getting the same error (below) for Oracle when I clicked on a G2 application.
Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
I restarted the machine, still the same.
I reinstalled the app (which includes Oracle), still the same.
I checked all the suggested registry settings as suggested and my registry was fine.
I checked the shortcut path and it fires up javaw.exe with a string following within the shortcut. I navigated to the G2 program files and I tried clicking in the javaw.exe directly within the application folder and got the same error.
I did some research into this and found that Java has a Javaw.exe within the following path:
C:\Program Files\Java\jre7\bin\javaw.exe
I navigated to the path and clicked on this javaw.exe file and didn't get any errors
I renamed the javaw.exe in the G2 app to javaw_old.exe and then copied and pasted the javaw.exe file from the above path into my app folder. Files side by side, you could see a file size difference and the date was 8 months difference. The newer and larger file being the one in the latest Java install folder.
Clicked on the G2 shortcut and the application opened without any errors.
If you have the same issue as me where everything Java is okay and your still getting the error, try find the java(.exe) file that your app is erroring on, rename it and copy and paste the same file from your Java folder (C:\Program Files\Java\jre7\bin) to the same folder your app's Java file is located.
I hope this helps someone.
Just reinstall your JRE. You will probably need to restart a computer after uninstalling.
Having both 1.7 and 1.8 caused me this problem. While uninstalling 1.8 some of the 1.7 registry keys were removed I guess. I was missing the key Java Runtime Environment and JavaHome String. Uninstalling all the versions of JDK and reinstalling the 1.7(update 80) solved me the problem.
I had exactly the same problem and exactly same set of errors. That was because my registry key Java Runtime Environment was missing altogether.
I did not have any conflicting 32/64 bit settings or any conflicting 1.7/1.8 settings.
All I did was install an update provided by Java and my settings went haywire.
What I did to resolve was, instead of updating registry entries myself, I simply did an uninstall and fresh install of JRE and everything was back to normal.

Android SDK: Cannot find Java, version of the file is not compatible

I've installed Android standalone tools on Windows 7 32-bit, but when I am trying to run the android utility on the command line, the following error report is shown:
No suitable Java found. In order to properly use the ADT, you need a version of JDK installed (...)
I have Java properly installed in C:\Program Files\Java\JDK, and my JAVA_HOME is set to this path. (C:\Progra~1 - for ANT), PATH includes C:\Program Files\Java\JDK )
I have read on here in other posts that android utility simply starts find_java.exe, so when I start the program directly, I had this error:
The version of this file is not compatible with the version of Windows
you're running. Check your computer's system information to see whether
you need an x86 (32-bit) or x64 (64-bit) version of the program, and then
contact the software publisher.
It just seems like the SDK manager installs wrong (64-bit? I am not an expert on that, but the error seems like that) of Java finder for some reason.
Has anyone encountered a similar kind of error? What could some reasons for that be?
Thank you in advance

ADT Bundle can't find Java

When I open adt-bundle-windows-x86_64-20131030 and click on the Eclipse.exe application to install it I get the message; A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java Virtual Machine was found after searching the following locations: C:\users\username\desktop\development\adt-bundle-windows-x86_64-20131030\eclipse\jre\bin\javaw.exe
javaw.exe is your current PATH.
I do have JDK, and JRE on this computer, I need them to view the emulator for my job. I have tried uninstalling and reinstalling Java with the same results. What can I do to fix this problem?
You will have to put Java in your classpath, so Eclipse knows where it can find Java. See here: http://docs.oracle.com/javase/tutorial/essential/environment/paths.html for info on how to do this.
install 32 bit version of jdk from oracle website
put the path of your java bin directory under Environment variables.
System->Advanced System Settings->Environment Variables->path
Open command prompt. use java and javac commands to know if you have successfully installed java and compiler.
if it doesn't help, this question has a lot of helpful answers
Eclipse - no Java (JRE) / (JDK) ... no virtual machine
From what you said:
"'java' is not recognized as an internal or external command, operable program or batch file"
Your java may not have been installed correctly, or, it was installed, but you did not set path to it correctly. It is not a problem with ADT, any of your programs that need Java will not be able to find it.

"Unable to find a javac compiler" - while trying to generate an android app with RoboHelp 10

I am exploring a trial version of Adobe's Technical Communication Suite. Following this video, I am trying to generate an Android app using a sample document.
I've tried changing the file paths for the JDK and apache.ant files, but keep receiving the same error message (see below).
BUILD FAILED
C:\Program Files (x86)\Android\adt-bundle-windows-x86_64-20130522\sdk\tools\ant\build.xml:713: The following error occurred while executing this line:
C:\Program Files (x86)\Android\adt-bundle-windows-x86_64-20130522\sdk\tools\ant\build.xml:727: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files (x86)\Java\jre7"
I got the same error but in a linux system and solved it by knowing that: JDK is a super command for JRE.
JRE: Java Runtime Environment only runs not compile or build (eg. using ant).
JDK: compiles and runs.
So try changing your java setting to JAVA_HOME= ..../java OR .../jdk not .../jre.
It seems that you didn't configure your JAVA variable environment.
BTW, I don't know what IDE you are using. As far as I know, if you have more than one java versions in your computer, in eclipse you should set variables.
(1) window->preference-> left column (Java)->Compiler, you could change different compiler version.
(2) And in left column (Java) -> Installed JRE, you should also modify the JRE version.

Categories