installing JDK and it shows empty icon - java

When I tried to install the JDK, it was installed but in start->java Development Kit: I faced with "empty"word.
But when I went to cmd and writed javac version or java version I saw true results and when I tried to install SDK for programming android with eclipse or install android studio I had not any problem for installing
But after installing when I created a new project in both softwares I had problems.
What I must do? Every time I try to install JDK it is installed as now.

Related

Installing eclipse brings me to error website

While trying to install eclipse neon. I click on the downloaded file and this webpage pops up:
However, I checked and I have JRE 1.8 so why can't I install it ?
C:\Program Files (x86)\Java\jre1.8.0_25
You need the Java Development Kit (JDK), these contains the libraries used for development
http://www.oracle.com/technetwork/java/javase/downloads/index.html

Android Studio only recognising 1.6 JDK when 1.8 installed?

I am learning to build an Android app for the first time, and not even able to get past the set up stage!!
I am using a Mac on OS X 10.9.5. I have the latest version of Android Studio (2.1.2) and JDK/JRE 1.6 and 1.8 installed on my machine.
When I go to Android Studio > About Android Studio, it tells me the JRE is 1.6.
I'm also getting an error saying: "Rendering Problems Android N requires the IDE to be running with Java 1.8 or later Install a supported JDK"
I have JDK v1.8 installed.
In File > Project Structure > SDK Manager I have the following set:
Android SDK Location =
/Users/Tom/Library/Android/sdk
Android JDK Location =
/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home
When I enter
echo $JAVA_HOME
it displays the following:
/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home
When I enter
echo $JDK_HOME
it also displays the following:
/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home
Why is Android Studio not recognising the 1.8 JDK?? Have been googling for 3hrs and getting nowhere. Any advice hugely recommended.
Just move your default Android Studio JRE, in this case to move JDK 1.6.0, on OSX do this
sudo mv /Library/Java/JavaVirtualMachines/1.6.0.jdk /tmp
Then restart your Android Studio, and check "About Android Studio"

Android studio not installing even if JDK 8 is installed

I just downloaded Google's new android studio bundle(x64 for Windows) and also installed JDK8 (C:\Program Files\Java\jdk1.8.0_25) (x64 version).
But on the android studio setup it does not detect JDK and asks to locate its path. I located its path but still it says it is not valid.
I tried declaring new Environment variables (both system and User) but still I get same error.
I also tried in cmd, and it says that java & JDK is installed.
After that I reinstalled JDK 8 for windows x64 from Oracle. But no changes in android studio...
Please Help. !
I had the same problem. I discovered that it was caused because I installed the JDK while the Android Studio installer was still opened and at the prompt to load the location of the JDK. Closing the Android installer and then reloading it after the JDK installation had completed and was closed out, solved the installation problem for me.
In my case, I am using java8 and based on Doc I just had to add the following:
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
While running Java 6 something I tried to install Android Studio. Android Studio did not find Java 7 or Java 8, so it asked me to install at least Java 7 and gave a link to Java 7. While the original instance of Android Studio Installer was still alive, it would not find Java 7 or 8. killing and restarting Android Studio Installer worked just fine.
So install Java and restart the installer.
I have same error but i closely look into the note and then my problem solved :)
It needs JDK 7, as stated on the System Requirements page: http://developer.android.com/sdk/index.html#Requirements
Update:
For Android Studio 2.1, it needs JDK 8 for Windows or Linux, and JDK 6 for Mac.
I solved this problem by closing the installation file, and open it again as an administrator. Pre over the need to set jdk.

Why isn't Android Studio seeing upgraded Java?

I'm having an issue with Android Studio 1.0.1. I downloaded and installed it on a MacBook running Yosemite 10.10.1. When I tried to make a 'Hello World' application, it complained that it requires JDK7 to compile android-21. I had JDK6 installed. So I upgraded Java, and I figured why not just get the newest version and so I installed JDK8. Then, I uninstalled and reinstalled Android Studio and restarted the computer. When I run java -version, the terminal tells me that I'm running version 8. However, my directory structure still looks like /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/.... Android Studio still doesn't like it and complains that I need JDK7. I tried editing the plist file for Android Studio and changing the JDK to 1.8 from 1.6 and this did not work. That was everything I could find on the internet so far. I was thinking I could uninstall Java and then install JDK7 but I don't have much experience with that as I'm a Linux user and so I'm clueless as to how to do a few things on Mac, like an equivalent of apt-get uninstall java in order to actually try this out. Alternatively, I'm not sure what program to drag to the Trash to uninstall. How can I resolve this?
Have JDK 1.7 installed and make JAVA_HOME variable point to the JDK 1.7 directory then Android Studio will find your JDK 1.7 following your JAVA_HOME variable

Getting eclipse to use Java 1.7

I'm running Mac OS X 10.9.1 (Mavericks). I was having a problem getting eclipse kepler to recognize Java 1.7 (u45), which I installed from the Oracle site. System Preferences clearly pointed to this version but eclipse couldn't find it.
I reinstalled Mavericks then installed the latest version of Java (051) from Oracle. Then started kepler and got the following popup:
After searching for a solution and not finding one, I tried a backup version of eclipse: juno. Now I get his popup:
Which takes me to Apple software update, which runs successfully.
Now juno starts ok but with kepler, I get:
And I'm back where I started.
How do I get out of this loop?
My first guess is that installing the Apple Java messed up the Oracle installation. Try reinstalling that one.
Secondly you probably need to get Eclipse to use Oracle's JDK at startup. You can do that from the command line using the "-vm" parameter or patch the JDK's Info.plist as described in this post Eclipse Kepler for OS X Mavericks request Java SE 6.
So I went for the nuclear option. I trashed kepler and got a fresh download. Then installed the Google jdks and plugin. Eclipse now recognized my java 1.7 install and Google plugin happily deploys my code.
I'm glad to be back up an running but disappointed that I didn't learn what went wrong in the first place.

Categories

Resources