IntellijJ IDEA 2020.2.3 Not Starting - intellij-idea

I downloaded IntelliJ IDEA Community edition from jetbrains and I installed it.
When I try to run it, nothing happens.
It doesn't respond.
Tried uninstall and install again, same.
Using Java 11.

First check if the JAVA_HOME variable is set.
If you go to IntelliJ Idea installation directory, try running idea.exe or idea64.exe, it will clearly say to add the JAVA_HOME variable and also append it in path variable.
Come back again to IntelliJ Idea installation directory and double click on idea.bat file.
It should open now.

Related

configuration is still incorrect in intellij

When I just want to run my simple beginner java program, the IntelliJ tell me that "configuration is still incorrect, Do you want to edit it again". I've read the official web of IntelliJ about set up configuration, but I don't think it give me helps. My computer is macOS with version 10.14.6; the IntelliJ version is 2021.2.3 community edition. I'll post my configuration setting, can anyone tell me where I set my configuration wrong?
My second question is that: When I want to run a specific file by right click my current java file and choose run xxx, IntelliJ will run all the fills under my current directory. How can I only run a single fill that I want to run?

Netbeans 8.2 doesn't start

I just installed Netbeans 8.2 with the JDK package. When I open the exe file nothing happens. Looking at the task manager I notice the netbeans service starting then stopping. I tried typing in the --trace command in the command prompt but don't see anything useful for me to fix.
I had the same problem because two JDK versions were installed on my pc, so changing the Netbeans needed JDK to lower version solved my problem. here are my passed steps:
Step One
In your Netbeans home directory (for example, C:\Program Files\NetBeans 8.1), open up the netbeans.conf in the etc directory (C:\Program Files\NetBeans 8.1\etc\netbeans.conf).
Step Two
There is a property called netbeans_jdkhome. Change the value to match the JDK you want Netbeans to use (for example, C:\Program Files\Java\jdk1.8.0_161).
Step Three
Save your changes (user must be Administrator)
Step Four
Restart Netbeans
i had the same problem. i solved it by reinstalling JDK. but at first i had two applications that were using JDK (intellij and netbeans) when i uninstalled the intellij the netbeans started to show the problem of starting in task manager and failing on loading the modules.
Some policies in the Network where now I am working changed, so I started NetBeans as Administrator and the problem was solved.

IntelliJ IDEA 15 Ultimate, Other Settings missing from Settings window

I recently upgraded from IntelliJ 14 to 15 ultimate and I realized I can no longer configure checkstyles as Other Settings in setting window is completely missing.
I cannot understand what I did wrong, and I am not sure if it's some configuration missing to get this Other Settings back.
Exact version : IntelliJ Ultimate 15.0.1
Here is how it looks:
What I tried:
Well I tried searching if there is a way to bring it back, but no luck yet. my colleague is using same version and he can see it. So may be during importing some settings or default configuration from IntelliJ 14, something went wrong.
This happened on an EAP build of Intellij 15:
Solution 1
I had the same issue after upgrade. For me the fix was simply to uninstall Checkstyle-IDEA, restart Intellij and then install it again after which I was able to see: Refer here for doing the same : IntelliJ Installing Plugins
Solution 2
If a restart does not fix your problem, I would recommend a manual cleanup. Steps to do so:
Uninstall Checkstyle-IDEA plugin from within Intellij
Close Intellij and remove the Checkstyle-IDEA directory from the plugins folder. The location of the plugins folder depends on the OS and is documented here : https://devnet.jetbrains.com/docs/DOC-181 For example: Windows: <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\config\plugins OSX: ~/Library/Application Support/IntelliJIdeaXX
Re-install the plugin and (after a restart) check if you can see the 'Other Settings' -> 'Checkstyle' section again.
Suggestion
Also, I am tempted to suggest that it might be worth seeing if the 'Other Settings' section appears when you install a plugin like 'Grep Console' which puts it's settings there:

How do I change the JVM used to run IntelliJ on Windows

I have two Java JDKs installed on my workstation, with jdk1.6.0_41 in my path, and jdk1.7.0_21 available as well, but not in the path.
How can I configure IntelliJ IDEA 13 to use a particular JVM? To be clear, I want to set the JVM used to run IntelliJ itself, not the SDK used for running my code. I am running Windows 7 Enterprise Edition and launch IntelliJ 13.0.2 by running idea64.exe
I have set JAVA_HOME to point to jdk1.7.0_21 but according to the About box it is using jdk1.6.0_41.
This FAQ on the JetBrains web site describes how to do this for Mac, but not for Windows.
This answer suggests using the IDEA_JVM environment variable for Ubuntu 12, but I have tried that and it isn't working.
I suspect you have another setting that is overriding your JAVA_HOME
From Jetbrains docs:
idea64.exe uses this JDK search sequence:
IDEA_JDK_64 environment variable
..\jre64 directory
system Registry
JDK_HOME environment variable
JAVA_HOME environment variable
With newer versions the environment variables are ignored. Instead there is a new action "Choose Boot Java Runtime". The easiest way to get to it is via "Find Action" Ctrl+Shift+A.
You can also edit the setting via the .jdk file in your user configuration directory, e.g. %APPDATA%\JetBrains\IntelliJIdea2021.3\idea64.exe.jdk. This is a plain text file containing only the path to the JDK.
It is not recommended to do this, and you should use the JDK that is bundled with IDEA.
CTRL+ALT+SHIFT+S to go to Project Structure
Under Platform Settings, go to SDKs.
Use the + green icon to add a new SDK and set it to that one.

gradle doesn't work in Intellij - problems with JAVA_HOME

I can run gradle from a command line to see its version.
I can run, compile and debug a grails app in IntelliJ (version 10.0 or version 10.2)
I installed the IntelliJ Gradle Plugin.
Whenever I try to do anything with gradle from within Intellij I get an error as follows:
Executing command: "tasks"
Failed to connect to gradle process for command 'tasks'
ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files (x86)\JetBrains\IntelliJ IDEA 10.0\jre
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
But in my environment I have JAVA_HOME set to the proper JDK in a different directory. Plus when I look in IntelliJ for the project, it also shows the JDK in the proper JDK location. I cannot find anything that attempts to point the JDK to the Intellij JRE location.
Any ideas please?
IntelliJ uses its own jre.
to force IntelliJ to use it, you need to set the environment variable IDEA_JDK to point to your JDK.
then simply restart intellij and gradle gui plugin should now work.
Man I had so much trouble with this as well, and I don't remember having this much trouble before. I think they changed something. Here are the incantations which got it working for me on Mac OS X 10.11.5, both with Java and Gradle on IntelliJ 2016.1
Here's the summary: install the latest Java JDK from Oracle, add the java_home value to $JAVA_HOME and set that value to $IDEA_HOME (IntelliJ's variable for defining which JDK to use), install gradle (optional) using homebrew, then define the project SDK in IntelliJ.
Here it is broken down from the very beginning of a clean install:
1. Download Java from Oracle's Download Page
2. Use homebrew to install gradle
IntelliJ ships with its own version of Gradle, so this is really optional, and is helpful if you want to use Gradle outside of IntelliJ.
`brew update && brew install gradle`
3. Set the env variables
Paste the following into ~/.profile. These values will work regardless of which version of java or gradle you have installed. Don't set the GRADLE_HOME if you didn't install the standalone gradle.
export JAVA_HOME=$(/usr/libexec/java_home)
export IDEA_JDK=$JAVA_HOME
export GRADLE_HOME=/usr/local/opt/gradle/libexec
4. Set the environment variable to occur at application launch so that IntelliJ sees is using OS X's launchctl program:
launchctl setenv JAVA_HOME $(/usr/libexec/java_home)
5. Define the project SDK
Use the project settings window in IntelliJ to define the project SDK (I don't see this option anywhere else in the global IntelliJ preferences window, this has to be done in the project settings).
6. Wait for the indexes to update, then close and re-open IntelliJ. You should now be able to build the program.
if you are using Intellij version 10.x you should not install any Plugin to run a gradle script.
All you have to do is to go to the Gradle setup (File -> Settings -> Gradle) and set the Gradle Home folder (the location of your Gradle installation, eg. C:\tools\gradle).
You should be able to select a Gradle build file and run it.
Point your JAVA_HOME to JDK, not to JRE.
I think this error might be caused by an install bug with IntelliJ IDEA. When I look at the installed folder referred to in the error message on my filesystem:
C:\Program Files (x86)\JetBrains\IntelliJ IDEA 10.0\jre
I see the jre folder but then another jre folder beneath that one which contains the bin and lib folders of the jre:
jre
jre
bin
lib
I copied bin and lib up a level into the first jre folder, and that fixed this error for me.