Intellij IDEA is not able to detect jdk what to do? - java

I have recently moved from windows to ubuntu-22.04 and it is a bit confusing.
I have installed intellij IDEA, after installing java and jdk, but still intellij is not able to detect the jdk version installed in my pc.intellij not detecting jdk
The path of installed java is also set but still it is not working in intellij.Path of installed java. what should I do, I am not able to use intellij IDEA for java programming.
I have tried setting up the path in .bashrc file but still there is no change in intellij IDEA.
.bashrc file.

From the screen of your first screenshot, Click "Download JDK", then select the version you need.
What you might already have installed is the Java Runtime

Related

Netbeans does not detect JDK installation

I have installed Netbeans 8.0.2 and it doesn't find the JDK installation path.
I suppose I have done all the steps correctly. Netbeans insists that I haven't installed the JDK.
How can I solve this issue?
[
This error exists because, you haven't configured the Environment Variable on your PC, that's why NetBeans is not detecting it. I recommend you to check this link.
Or you may Uninstall/Delete the existing NetBeans and JDK installer and download and install from here. It has package already linked with JDK, so you don't have to configure it later.

NetBeans can't find JDK 10 I installed

I am reading the JavaEE first cup, and I needs JDK8+, my version is older, so I upgraded my java, Configure the System Path, Install so on, I successfully run java -version in command prompt and it recognizes me that I've installed successfully, but when I start my NetBeans, It can't find Java! Not only that, but also my Eclipse neon can't find java! I check the eclipse.ini, maybe it just need a JDK 8. So I just wonder, how can I make my NetBeans found my Java?
I am new to netbeans,so I resort to configuration in eclipse.ini,I try to add “--ALL"like script,I doesn't work anyway!Thank to my patience,I notice some jdk1.8required
property,I am completely rush to my deadline,so I avoid to this problem,and got 1.8,but thanks a lot if you recommend eclipse IDE lastest version which can work well with JDK 10 without any modification in ini file!

Issue JDK creating a scala project in Intellij

I have installed the JDK jdk-8u144-windows-x64.exe in my computer in order to set up the tool IntelliJ to play with Scala, well before move forward to IntelliJ installation I ensured the JDK in my computer:
running path:
the running a java version:
Then, I installed the IntelliJ and the Scala plugins, so when finally I'M going to create my first project my laptop configuration is not mapping the JDK:
I tried to add the required environment just clicking on new and go thru the path where I installed the jdk but it doesn't go thru either.
Please, guys, I'm a bit nooby with Scala and IntelliJ, could you please guide me a bit. I tried to follow the instructions in this link but it is not going thru. https://www.scala-lang.org/documentation/getting-started-intellij-track/getting-started-with-scala-in-intellij.html
thanks
Make sure you have set environment variable JAVA_HOME to your java directory, IntelliJ detects JDK using that environment variable, or you can browse the path of java installation directory using "New" button beside jdk and select it.

Groovy and grails jdk issue

I wish I could give you guys more information on what's going on, but I really have no idea. I am trying to install groovy and grails tools suite from springsource and I am having trouble configuring it to work properly. I have the most up to date JDK, and the preferences show it, but I still get warnings and it does not build. I have posted some pictures below to show what is going on.
on your GGTS go to window
select java
select installed JREs
add-> Standard VM
jRE home select directory up to C:\Program Files\Java\jdk1.6.0_18
select jdk1.6.0_18 from installed JREs
I faced a similar issue (I am sure it is the exact issue) - Here are the steps to ensure it works correctly, I struggled with initially but this got it going.
Install JDK from http://www.java.com ,in a directory where there are NO SPACES in the path
Set JAVA_HOME to your JDK installation
Ensure %JAVA_HOME%\bin; is in your PATH variable.
On the command prompt run java -version, it should give you the path where JDK is installed
Install STS Springsource Tool suite.
Run your STS and create a new grails project and run it.
Let me know if that does not work.
It might be that you are launching Eclipse with a JRE even though you have a JDK installed as one of the compilers in your workspace. To find out if you are launching with a JRE or JDK, go to Help -> About GGTS -> Installation details -> Configuration
Look for the -vm option and make sure it is a JDK not a JRE.

IntelliJ not recognising JDK version

I have write one java project on IntelliJ idea 8.1.1.When I go to compile option of IntelliJ IDEA 8.1.1 then it shows pop-up message box, in that it shows error-
cannot determine version for JDK
Update JDK configuration.
Even though I have proper JDK version, I have jdk1.5.0 installed in my PC working properly with other environment.
Please suggest any settings that I may need to change.
I got this same error message just recently in IntelliJ IDEA 9.0.4. "Cannot Detect JDK Version", "Probably JDK installed in C:\Program Files\Java\jdk1.6.0_24 is corrupt."
I was able to solve it by removing the JDK from Project Structure | SDKs and then re-adding it.
What is the output of the "java -version" for this JDK installation? It could be that the output contains some non-standard strings before the actual version information. Such strings can be added by the environment variables on your system. IDEA may not be able to parse this output and detect the JDK version correctly.

Categories