Windows 8 - Running Eclipse (Java VM not found) - android

I just downloaded the Android Developer Tools Bundle. I started following the setup instructions and gotten as far as extracting the files to new location ("Development") as it says. I tried running the Eclipse app as instructed, yet a window popped up saying;
A Java Runtime Environment (JRT) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following location:
C:.........\Development\adt-bundle-windows\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH"
I tried compatibility trouble-shooter which can not detect a thing, whether it was the right action to take. I looked across stackoverflow and tried a few of the suggestions with no change. I looked at windows site and android site and nothing seems to make any difference, good or bad (well, I hope no bad).
I literally got this laptop 10 days ago and all programs are brand new, no updates or reinstalls etc.
I am running a Windows 8 with 64bit, which is what I selected at download of ADT Bundle.
I had downloaded the wrong java file.
To fix I went to;
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html
and accepted terms then downloaded the appropriate file which I had to signup for registration;
Windows x64 90 MB jdk-7u7-windows-x64.exe
It worked without changing any PATH.
Thank you..

At first download jdk(java development kit) and install it. the jdk includes the jre(java runtime environment). You can also install the jre alone.

Thank It worked. Just add C:\Program Files\Java\jdk1.7.0\bin in your PATH
Control Panel
1. System
2. Advance Setting
3. Advance
4. Environment Variables
5. System variable Group
6. look For PATH in the list
7. Edit
8. Add path of your C:\Program Files\Java\jdk1.7.0\bin jdk installation and save
Remember to separate value with ;

You must download a JDK or JRE first from java.oracle.com, and add your installation folder in the PATH system avaiable.(Control Panel --System--Advance Settings --advance -- enviroment)

Go to the following page and download the executable on java.com
The executable installs the latest JAVA virtual machine.
NOTE: for Windows only
The installer knows your current version of windows.

Related

Android Studio will not open in Windows 10

I've just downloaded and installed Android Studio on a Windows 7 PC without issue.
For a Windows 10 (x64), it's a totally different matter - whatever I do Studio refuses to even open - no splash screen nothing. I know there are many posts/Youtube videos saying "all" you have to do is ensure the environment variables are correct - which they absolutely are!
I've setup all the required environment variables, path is correct and points to Gradle 3-4, have even installed Java to off the root of C: in a folder without any spaces (as advised by an obscure post I read somewhere) and Studio is configured as Administrator. If I even delete the environment variables, point them to invalid locations, nothing.
If I run the EXE (Studio64.exe) from a command prompt- nothing. I have no Studio.bat btw.
Java is installed correctly (java -version is ok : 1.8.0.144). I have even made the local user owner (with full control) of all Android, Java folders.
I seriously do not know what else to try.
Any ideas would be greatly appreciated.
On a side note, I've installed Studio on my work PC (also windows 10) and this works like a charm. Also, on the Win7 install I've even removed ALL environment variables and Studio still works running Studio64.exe(!!???)
I've attached screenshots of my environment variables:

Installing Android SDKr18, SDK will not detect the JDK

![enter image description here][1]Thanks for taking the time to read my question.
This is not another back, then next problem.
I have installed eclipse classic and jdk-7u3-windows-x64, the problem is when I go to install the android SDK, I get this error:
http://i.stack.imgur.com/V9VIY.jpg
I have been searching the net all night, one solution seems to be for an earlier version of the Android SDK is to click back then next, I have tried this to no avail.
I have also set up a environment variable, this didn't work either.
I have checked that java has definitely been installed, I have run and installed all software as admin. Still I get the same message.
So can anyone out there help me with this issue?
Big thanks in advance for any help!
Nick.
I had similar problem with Windows 7 - 64 bit machine. The installation of the Andriod SDk wil l hang on the screen where it is trying to locate JDK. I had both 64 and 32 bit JDK installed. JAVA_HOME was set to correct JDK (32) bit to C:\Java\jdk1.6.0_13 but the installer will get stuck in a loop and will never recover from the screen.
It is silly really but what I had to do was, to reinstall jdk-6 32 bit in a different directory this time (C:\Program Files (x86)\Java\jdk1.6.0_31) , change the JAVA_HOME to C:\Program Files (x86)\Java\jdk1.6.0_31 and reinstall SDK.
Very strangely it didn't pick up new installation of JDK at C:\Program Files (x86)\Java\jdk1.6.0_31 as set in the JAVA_HOME, instead it picked up my old installation from C:\Java\jdk1.6.0_13\
Someone really need to check their codes at Google!!
But sorted , I am happy
I think all the installed and uninstalling of java caused the above error. Anyway restored my computer back to a certain point and installed the jdk 6 32 instead to start with. The sdk found it straight away.

How do I get a JRE file for Eclipse?

Background:
In my Mac OSX 10.6 Snow Leopard, I've downloaded the Eclipse and Android SDKs. I started on a Hello World tutorial provided by Eclipse, but a dialog insists it can't find a JRE.
After a bit of searching the web, I learned that it should be in the eclipse/jre/ folder, but that folder does not exist on my system. I downloaded the Java for Mac OSX 10.6 package from the Apple Developer site, and still see no jre files.
Supposedly it is should be provided by Java. No use writing the file in eclipse.ini if I can't find the file in the first place.
This page indicates that the Max OS X already has the JRE, but I can't find the file to link to it: http://www.eclipse.org/downloads/moreinfo/jre.php
I have installed Android, Eclipse, ADT, AVD, PhoneGap.
Summary:
Need JRE.
Try /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Alternatively check /System/Library/Frameworks/JavaVM.framework/Versions/ for other versions.
For Mac OS X VMs there should be Home at the end of the location.
You should be able to download the OS X version of Eclipse, unpack it, and start the Eclipse.app executable and then be able to write runnable Java programs as Java is available by default in OS X.
If you cannot start Eclipse.app, then my guess would be that you downloaded the wrong version of Eclipse. Be certain it is the 32-bit version offered on the http://eclipse.org/downloads/ page as it should run on all 10.6 machines.
If you can start Eclipse.app, and you can type in programs, but you cannot run them, please take a screen dump of your Eclipse -> Preferences page placed on the Java->Installed JRE's panel.
From your post it sounds like you can launch Eclipse ok?
If you can launch Eclipse you have a working JRE.
Eclipse picks up the JRE from your system, or if it finds nothing it looks for a jre folder in the same directory as the Eclipse executable.
So it sounds like your JRE is somewhere on your system (otherwise Eclipse wouldn't start), but for some reason you do not have any pre-defined in the Installed JRE preference page.
Here's how you can find the JRE eclipse is using to bootstrap, and set it up as one to use:
In Eclipse 3.6.1:
Have a look in Help->About Eclipse SDK
Click "Installation Details"
Go to the Configuration tab
There should be a reference to the JRE in there - e.g. on mine:
-vm
~/personal dev/jdk1.6.0_24/bin/../jre/lib/i386/client/libjvm.so
Once you've found that, open up Windows->Preferences->Java->Installed JREs and add a new one to point to the location you found (eg on mine it is ~/Desktop/personal dev/jdk1.6.0_24)

Installing Android SDK on Windows 7 64-bit: "JDK not found"? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Android SDK installation doesn't find JDK
I am unable to install the android SDK. It requests that I have the JDK, which I do. I re-downloaded and reinstalled the Java JDK. I restarted my computer, I ran this install again for the android SDK... nothing... it won't let me get past this point. Here is a screen shot of the screen I'm stuck on:
I've googled my problem, I've spent 2 hours trying to find the answer... the closest I could get would be something about adding a "Path" to my "Environment Variables." I found where the environment variables are in Windows 7, but I don't have the slightest clue what I am supposed to do.
Found this last night Android SDK install problem and now I can install it on my Win7 64bit + JDK 64bit
Somehow the r8 SDK installer are looking for JDK path inside 32bit registry key while I am installing 64bit JDK.
Update
Believe it or not, clicking Back and Next will fix it :) (someone comment on my blog post about it and judging from the others comments, it kind of works)
Disclaimer: This is my blog http://codearetoy.wordpress.com/2010/12/23/jdk-not-found-on-installing-android-sdk/
I have this same problem on my new PC, and now I found this and it works:
Windows 7:
From the desktop, right click the Computer icon.
Choose Properties from the context menu.
Click the Advanced system settings link.
Click Environment Variables. In the section System Variables, find
the PATH environment variable and select it. Click Edit. If the PATH
environment variable does not exist, click New.
In the Edit System Variable (or New System Variable) window, SET
the value of the PATH environment variable TO JAVA_HOME. Click OK. Close all
remaining windows by clicking OK.
Then it will have no problem on installing the Android sdk
Source: http://docs.oracle.com/javase/tutorial/essential/environment/paths.html
I've always installed Java JDK 32-bit from here.
Seems to be the easiest way, works properly, and I don't really see why one would need 64-bit when doing Android programming.
I had the same issue, but I found a way to fix it. When you get that box go and download it again; after it has downloaded, go back to the pop up box and hit the back button and then click next again and it should recognize that you have the JDK installed.
Hope this helps, and good luck.
you got to download jdk basic from oracle.com i was getting that too. visit that site and it will take you straight there. scroll down and to the first jdk/jre download the correct system type. install it and sdk should pop up after it done.
I installed the 64bit version of JDK from this site
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u23-oth-JPR#CDS-CDS_Developer
I had no problems installing android

Can't add Android under Eclipse-plugin on Windows 7 - Not visible

I've tried to search for similar problems, but can't seem to find it.
I run:
Windows 7
Java SE Developement Kit x64
Eclipse Helios (downloaded here from Eclipses homepage --> Downloads --> Eclipse IDE for Java EE Developers --> 64 Bit)
"Android SDK Windows"
I've been following the guide from the Android Developers homepage.
I can launch Eclipse just fine. Under Help --> Install New Software ...
Here, I give it a name myself (Android Plugin Test), and under location, I've typed "http://dl-ssl.google.com/android/eclipse", as said in the link.
Then it find Developement Kit, and I install it and all that & restart Eclipse.
The following are now installed:
- Android DDMS
- Android Development Tools
- Eclipse IDE for Java EE Developers
So everything seems fine.
BUT ..
When I go to Window --> Preferences, "Android" is missing.
I have no problems seeing General, Ant, Data Management etc.
So my question is, what's the problem ?
As said, I downloaded Android SDK, but when I try to run the setup, I get this error, about missing Java:
http://img827.imageshack.us/img827/600/javaproblem.jpg
And that's where I'm lost.
Because, under installed programs, it says:
- Java(TM) SE Developement Kit 6 Update 21 (64-bit)
And yes, I have restarted after installing Java.
For some odd reason, it's not possible for to run the SDK setup with any compatibility. It's greyed out
(Yes, I'm admin, and I don't have any problems on other programs)
I checked the Requirements for Android SDK, and it says Windows XP & Vista, but not 7 .. But as far as I know, other people got it to work.
So .. What am I doing wrong ?
Do you have any solutions ?
If I need to download other Java versions (or anything else), please provide links.
You need to take care of three things...I too faced similar problems so can tell you how to go about it:
1) Download Eclipse -> 32 bit version...since your SDk is 32 bit...make sure ur JDK is 32 bit...
2) After downloading 32 bit version install Android ADT first......
3)Then go to Preference-> Android -> Give the SDk path here......n then download the platforms and samples....
Feel free to ask if your still unable to get it sorted coz i faced similar problems....
If I remember correctly, you need to add your Java's /bin path to your path environment variable by hand. Open your Computer by right-clicking, go to Advanced system settings, then Environment Variables and add the full path to the Path variable. For example, I added ;C:\Program Files\Java\jre6\bin to the existing string.

Categories

Resources