Android Studio on Windows 8 64-bit can't find JVD - java

I just bought new laptop and I have problems with running android studio. I have read over 20+ questions/answers about this but exact problem but with me it's not working. The problem: After installing the studio (successfully), when I try to run it it sais: No JVM installation found. Please install 64-bit JDK. Note that I have already installed JDK, specified JAVA_HOME, and JDK_HOME as a variable (100%) that the path is correct ("C:\Program Files (x86)\Java\jdk1.7.0_25"). I have also java installed. I have tried reinstalling the studio, reinstalling java and almost everything that I could find on google, but nothing works. Eqlipse, works just fine though. It is not my first time trying to install Android Studio, but I can't figure this one out. I have read from here: Click and here Click mostly, and from a lot more like threads like this, but I cant solve my problem. Any ideas?

What you have installed seems to be 32 bit version as it is getting Installed in "Program Files (x86)",Download and install 64bit JDK and that should automatically get installed in "Program Files" folder and not in "Program Files (x86)".
Download 64bit installer of JDK
This might solve the problem.

Related

Java Eclipse saying my version of JVM is not suitable

I run the windows 10 64 bit version of Eclipse. The first time I log onto Eclipse it works just fine (though I haven't fun any code yet, so I'm not sure if that works) but upon closing and reopening Eclipse it says, "Version 1.8.0_301 of the JVM is not suitable for this product: version 11 or greater is required." and immediately quits. I have downloaded jdk 16 and installed it. Redownloading Eclipse fixes it until I close it again. How can I fix this? I am a new Java programmer and am not experienced with any of this.
You should have a folder like ths: C:\Program Files\Java. In there, there should be a folder named 1.8.0_301. Delete this folder and reinstall java.
I had the same problem, this solved it for me...
First of all I suggest you check the version of your eclispe IDE. You may have downloaded a version that doesn't supprot your installed jdk.
This link should provide you with the suitable jdk version for every eclipse version.
https://wiki.eclipse.org/Eclipse/Installation.
I hope I helped you a bit.
Cheers!
I had this problem with Java version 1.8.0_351.
In the program management settings of Windows I removed Java 8. After that, my Eclipse installation worked fine.

Set JDK location for Android Studio without an Enviroment Vairable

I am running Windows 7 and just upgraded my Android Studio and it is not working anymore. I get a dialog that says it cant find the jdk. I have version .9 now. I do not have admin rights so I can not edit my Enviroment Variables. Is there a way I can tell Android Studio where the JDK is. Maybe command line args? I havent found any source that outlines if there are any.
Please note that I can not run Android Studio, so I cant update it from inside the application.
Also, I do have Cygwin.
Since, Android Studio was working before and only broke after the update, please check the Studio shortcut you're using to launch the IDE. By default, Android Studio points it to studio64.exe. If you have a 32-bit Java JDK installed use the studio.exe to launch the IDE.
If that doesn't help, see if you can create a JAVA_HOME user variable? You maybe able to do that even though you have a limited account. If you are unable to do so, as a last resort, move/copy the JRE (not JDK) into the Android Studio install location (right next to bin). You need to name the folder jre or jre64 depending on which launcher you use studio.exe or studio64.exe.
I solved this. I download the Server JRE from the Oracle page. I then decompressed the gzip and untared it. I then then added to my ~/.bashrc file in cygwin "export JAVE_HOME=". Studio was able to find this.

ubuntu 14.04 failure to install or run eclipse adt and android sdk

Fresh Ubuntu 14.04 install alongside windows 8.1 on brand new system and HDD *UEFI partition.
First steps I took on Ubuntu 14.04 was installing open-jdk-7 and Eclipse with ADT and everything worked correctly.
I wanted Oracle-JDK-7 and to remove open-jdk-7.
I first removed eclipse adt, removed all updates/installs from ADT Package manager then removed open-jdk-7
I installed the Oracle-JDK-7 via the terminal then I reinstalled eclipse adt. eclipse adt will not run correctly or at all now.
the errors I am getting (Not exact word for word)
*This program will not run, cannot locate adb ddms tools
*Android-sdk-linux/ directory does not exist or cannot locate file or no such archive
when I point eclipse (from within eclipse) to the android-sdk it then switches the error to "cannot run program missing adb ddms tools"
my own troubleshooting so far
re-installed open-jdk-7 alongside oracle-jdk-7 and set default version and default javac to both open-jdk-7 *which I decided I want.
Installed android-sdk standalone (with eclipse removed from system) and extracted to the home directory
From the terminal I entered the directory and bash does not recognize android-sdk-linux claiming there is no such file or directory even though it is clearly there.
I believe I narrowed the problem down to just the Android-sdk which includes the platform tools, not being found for some reason...
I am new to Linux...
I do not know how to set JAVA_HOME in linux/ubuntu 14.04 (not sure if that is relevant to this issue)
I know in windows you must delete metadata. folder before installing eclipse adt again.
In my experience, Eclipse Adt always runs perfect on first time install on new system
In my experience all errors and unstable behavior from eclipse adt show up after I replace original install (on both windows and linux platforms Eclipse ADT never runs the same as first install)
I hope someone may be able to point out something I did or am doing wrong in the current situation and overall as I am stumped as to why Eclipse-ADT will not run after remove and new install.
Is there a specific way to completely remove every trace of eclipse ADT?
Do I have to create a directory from the terminal for eclipse, eclipse adt, android sdk any combination?
Being new to linux I am not even sure if I set up both JDK's correctly or if I caused damage to my overall install.
Please go easy on me guys... I checked things out before resorting to asking, in fact this is my very first question as I usually always figure things out on my own... I am really stumped and not quite comfortable enough with linux Ubuntu 14.04 to mess around with my particular situation any further. I humbly ask for precise instruction on how to get eclipse adt to run and behave the way it did on first install... and also if necessary how to set JAVA_HOME (I want open-jdk for building android aosp and oracle jdk for building apps)
Is it possible in ubuntu 14.04 to install eclipse adt and have it use open-jdk and install android studio and have it use oracle jdk all on the same ubuntu install... how would I go about creating the directories?
I know this is a very lengthy question with alot of details... I must get my Ubuntu 14.04 install production ready asap
I use Eclipse ADT along with Oracle JDK 7 in my ubuntu 14.04.
This is how I have done the setup,
Ubuntu comes with Open JDK. No need to remove it. Once you install Oracle JDK , it will become your default JAVA_HOME. So no need to worry much about the configurations.
To Install Oracle JDK 7:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
After installing check with "javac -version" command.
Now just get a fresh Eclipse ADT for Linux from here
Unzip it , Get into Eclipse directory and open the eclipse executable.
You will be all set to start your android development with Eclipse ADT and Oracle JDK 7.
For Studio, Just get the studio from developer site and execute the studio.sh file which is present inside the bin directory of Studio. Thats it.
Hope it helps :)

Error opening eclipse from android ADT bundle download

I downloaded the ADT bundle for windows in the android developers website. I'm expecting that once I extracted them on my C: it will just run smoothly. Unfortunately, I'm getting this error
Any ideas on what's causing this? Already downloaded java from oracle website. C:\Program Files\Java\jdk1.7.0_25.
Edit:
For those asking the version of my OS. Here it is.
So I'm sure I downloaded the right version of the ADT.
It seems like you have downloaded wrong version of Adt. Are you sure that it is suitable for your pc? Is your computer 64-bit?
Check if it's the 32-bit or 64-bit version. If that doesn't work, re-install java. The jvm.cfg file is an internal file and should not really be touched, but it seems Google might have a custom one for the emulator or something. If that still doesn't work, open SDK Manager and install everything they have. Otherwise I dunno.
I don't know what is the real problem but I uninstall JRE and install again ..Now its perfectly working .

Android SDK Zip - Windows 64bit Home Variable

I'm using the android_sdk.zip version, since I don't feel comfortable using installers on Windows systems. However, I understand that I need to set the Home variable in order for the SDKManager.exe to run properly. I tried another method posted on stackoverflow, but if I do that, then both Eclipse and Netbeans, won't find Java anymore.
"C:\Program Files\Java\jdk1.6.0_25\bin';'"
Any ideas?
Thanks!
I believe there may be a bug in the installer for Windows, as I haven't seen it work properly at detecting a JDK on Windows 7 at all.
If you are planning on developing in Eclipse, it isn't even required. You'll save yourself a lot of time and headache if you just download and install the SDK zip file (instead of the installer EXE).
Download and unpack this file somewhere on your machine
Install the ADT plugin into Eclipse
Point ADT to the location you unzipped the SDK in Preferences
HTH

Categories