No java development kit jdk found

The Writer

Erwin Maulana Saputra a Software Engineer who live in Indonesia, in love with this field since junior high-school while creating ASCII or 320×200, 256bit games 🙂 and now somehow making money from web stuff *wink* Used to work at DotSeven and Mitrais, co-founding Kreavo and currently working for a cool-startup in Indonesia called Appsindo Technology

Recent Posts

  • Android AOSP Build – Selective Repo Sync for faster synchronization
  • OrangePI PC Android display on DVI monitor
  • Cleanup source from .git artifacts (tronsmart android source)
  • Hydroponics (Aeroponic) Arduino Timer
  • Arduino Clone USB Driver on OSX (CH340, CH341)
  • Enable Remote Debugging for Safari Mobile iOS (iPhone and iPad of course)
  • Install Imagemagick with WEBP on Ubuntu
  • Mass Updating iPads (plus installing supervision mode)
  • Installing HTTPS/SSL certificate on Nginx
  • Bash Script (!#) Shebang Issue (Vagrant, Linux, Windows)
  • Install Vagrant and free your Machine (more memory for Games!!)
  • PHP FPM refuse to start after upgrading Ubuntu
  • Node.js + Nginx
  • Yii Building Search Query Using CDBCommand
  • Javascript check Opera Mini
  • Create Dwoo plugin that is reusing another plugin
  • CodeIgniter router config for dynamic url (url shortener or seo friendly url)
  • CodeIgniter 404 not found on freshly installed apache2
  • Sharepoint Workflow – How To Pass Value To Custom Task Form Extended Properties
  • CAML query on GetItems doesn’t filter the content
Читайте также:  Instantiate an object in php

Top Posts

Archives

  • September 2022 (1)
  • January 2016 (1)
  • December 2015 (1)
  • November 2015 (1)
  • September 2015 (3)
  • October 2014 (1)
  • September 2014 (1)
  • August 2014 (1)
  • July 2013 (1)
  • December 2012 (1)
  • October 2012 (1)
  • March 2012 (1)
  • December 2011 (2)
  • September 2011 (1)
  • August 2011 (1)
  • July 2011 (1)
  • May 2011 (1)
  • April 2011 (1)
  • February 2011 (1)
  • January 2011 (1)
  • December 2010 (1)
  • November 2010 (2)
  • October 2010 (6)
  • July 2010 (3)
  • June 2010 (1)
  • September 2009 (1)
  • April 2009 (2)

codearetoy

–> Hello World / コロニー

JDK not found on Installing Android SDK

So last night I was installing Android SDK r8 on Windows 7 64bit and using JDK 6 64bit.

The installer gave me this…

But I have installed JDK, so somehow the installer cannot find my JDK path and adding JDK location to my PATH doesn’t solve it.

I’ve googled about it, and some people have this solutions:

But I don’t want to do those 😀 I have 64bit environment, so I want to use JDK 64bit (mainly because I am too lazy to re-download those)

And then I found this discussion here that tells me to change some registry key, because the SDK installer somehow is looking for 32bit JDK path.

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\]

and apply some changes so it will be imported to

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\]

(basically just find-and-replace

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\

Below is the new registry file, I save it to .reg extension and Import it to my registry. Voila! my Android SDK r8 now works!

Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft] [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit] "CurrentVersion"="1.6" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit\1.6] "JavaHome"="C:\\Program Files\\Java\\jdk1.6.0_23" "MicroVersion"="0" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit\1.6.0_23] "JavaHome"="C:\\Program Files\\Java\\jdk1.6.0_23" "MicroVersion"="0" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Plug-in] [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Plug-in\1.6.0_23] "JavaHome"="C:\\Program Files\\Java\\jre6" "UseJava2IExplorer"=dword:00000001 "UseNewJavaPlugin"=dword:00000001 "HideSystemTrayIcon"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment] "Java6FamilyVersion"="1.6.0_23" "CurrentVersion"="1.6" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.6] "JavaHome"="C:\\Program Files\\Java\\jre6" "RuntimeLib"="C:\\Program Files\\Java\\jre6\\bin\\client\\jvm.dll" "MicroVersion"="0" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.6.0_23] "JavaHome"="C:\\Program Files\\Java\\jre6" "MicroVersion"="0" "RuntimeLib"="C:\\Program Files\\Java\\jre6\\bin\\client\\jvm.dll" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.6.0_23\MSI] "JU"="1" "OEMUPDATE"="" "MODE"="C" "JQS"="" "FROMVERSION"="NA" "FROMVERSIONFULL"="" "KERNEL"="" "PRODUCTVERSION"="6.0.230" "INSTALLDIR"="C:\\Program Files\\Java\\jre6\\" "SYSTRAY"="1" "EULA"="0" "IEXPLORER"="1" "MOZILLA"="0" "JAVAUPDATE"="1" "AUTOUPDATECHECK"="1" "AUTOUPDATEDELAY"="" "ImageCkSum"="2272295289" "FullVersion"="1.6.0_23-b05" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start] "CurrentVersion"="1.6.0_23" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.0.1] "Home"="C:\\Program Files\\Java\\jre6\\bin" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.0.1_02] "Home"="C:\\Program Files\\Java\\jre6\\bin" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.0.1_03] "Home"="C:\\Program Files\\Java\\jre6\\bin" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.0.1_04] "Home"="C:\\Program Files\\Java\\jre6\\bin" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.2] "Home"="C:\\Program Files\\Java\\jre6\\bin" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.2.0_01] "Home"="C:\\Program Files\\Java\\jre6\\bin" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Web Start\1.6.0_23] "Home"="C:\\Program Files\\Java\\jre6\\bin" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Prefs]

Update:
Zukro notified in the comment box that you can try a faster way, I never tried this method but many notified that it works, no matter how weird it may sound 🙂

I quote Zukro’s comment directly

When there’s a pop up say JDK not found. just press ‘back’ button and then press again ‘next’ button.. look what happened.

Well, there’s magic in that I presume 😛

Источник

Flutter doctor: No Java Development Kit (JDK) found on Windows 11

The problem: When you run flutter doctor , you get a “no Java Development Kit (JDK) found” error:

The solution: Install a Java Development Kit, then set the environment variables

Download and install a JDK

Download the file and run the installer.

Add the JAVA_HOME environment variable and update the PATH

Now for the “fun” part: You may have to manually edit the JAVA_HOME and PATH environment variables on your Windows system. In the example below, I’m using JDK19. Please make sure to adapt the instructions so they match your particular setup.

  1. Locate your JDK installation directory. The default path is usually C:\Program Files\Java\jdk-19 , but it can vary depending on your installation settings. Make sure to copy this path for later use.
  2. Right-click on the Windows Start button and select System.
  3. In the System window, click on Advanced system settings:

  1. In the System Properties window, click on the Environment Variables button near the bottom right:

  1. Under System variables, click on the New button.
  2. Enter the variable name JAVA_HOME . As the variable value, enter the path to your JDK installation directory from the first step:

For example, if your JDK is installed in C:\Program Files\Java\jdk-19 , then the value should be C:\Program Files\Java\jdk-19 .

  1. Click OK to save the new environment variable.
  2. In the System Variables list, locate the Path variable, and click Edit.
  3. In the Edit environment variable window, click New, and add %JAVA_HOME%\bin to the list. This ensures that the JDK executables are available in your system’s PATH.
  1. Click OK to save the changes to the Path variable, and close all remaining windows by clicking OK as well.

Please keep in mind that you will need to open a new Command Prompt window for the changes to take effect, as the environment variables are loaded when the Command Prompt is launched.

To verify the changes, you can run echo %JAVA_HOME% in a new Command Prompt window. This should display the path to your JDK installation directory. Running java -version should display the version information of your JDK 19 installation.

Finally, running flutter doctor should show that the “No Java Development Kit (JDK) found” error has disappeared:

Источник

George Birbilis @zoomicon

fix: Java SE Development Kit (JDK) was not found on this computer

image

I was just installing the fine IDE NetBeans 6.9 and its installer asked me to install the Java JDK first. It was saying «Java SE Development Kit (JDK) was not found on this computer» (see screenshot). The dialog points one to download the JDK at http://java.sun.com/javase/downloads. Since Oracle acquired Sun, now that redirects to http://www.oracle.com/technetwork/java/javase/downloads/index.html.

The JDK seems to be included in Java SDK now together with GlassFish Enterprise Server, so their page takes you to that when you ask for the latest JDK (btw, the version numbers can confuse you since the SDK has a lower version number than the JDK that’s included in it).

After installing the SDK (JDK and GlassFish etc.), I created a batch file (install-netbeans.bat) to launch the NetBeans installer with the appropriate parameter (was too bored to try the alternative of setting the JAVA_HOME environment variable in Computer’s Advanced Properties at Windows):

netbeans-6.9-ml-windows.exe -javahome «c:/somefolderpath/glassfishv3/jdk/bin»

…but I kept on getting the same error dialog again and again. Then I did a web search for «netbeans installer javahome» and came across FaqInstallJavaHome NetBeans wiki entry where I noticed that whereas Netbeans 4.x/5.x used «-is:javahome», NetBeans 6.x uses «–javahome».

YES, WITH TWO DASHES IN FRONT of «javahome» installer argument! Totally foreign syntax to Windows world (but not to Unix commands and the Java runtime launcher syntax [at least in recent years]). Even worse is that it’s almost impossible to notice the double dash with the font face used in that error dialog.

All was finally fine using this one (just added the extra dash to write –javahome instead of -javahome):

netbeans-6.9-ml-windows.exe –javahome «c:/somefolderpath/glassfishv3/jdk/bin»

Источник

Intellij жалуется на наличие jdk, но у меня установлен 18 jdk, как исправить ситуацию?

62b851afd60e0458523780.png

Только начинаю разбираться, поэтому не знаю, что сделать. Может он жалуется вообще на отсутствие какого-либо jdk, а не именно 11? Может мне нужно где-то найти, где я могу установить установленный jdk

azerphoenix

Добрый день.
Там вверху есть синяя полоска и написано, что jdk 11 не найден. Также предлагает скачать jdk 11.
Ваш проект использует jdk 11. Нажмите ctrl + shift + alt + S и в настройках выберите соответствующий jdk.

а в этом проекте используются какие-то устаревшие добавления или что-то в старого jdk? Может в новом jdk что-то не так задаётся и можно правильней(новее) написать?

Jacen11

Jacen11

igordance

Keit265,
File -> Project Structure — это настройки проекта, можно там поменять на 18ю, если хотите (по-моему также придётся перезапустить ИДЕЮ после изменения).

А по мысли о «в новом писать новее» — java обратную совместимость официально поддерживает.

Войдите, чтобы написать ответ

Что мешает заполнять контейнер с обобщением, если его перекинуть в параметрах метода?

Источник

Оцените статью