What is the reason for intellij IDEA for not launching (Failed to load JVM DLL)? - intellij-idea

On my computer (64 bit operating system, x64 based processor) I installed Amazon Correto JDK 11 (for 64 bit) and IntelliJ IDEA. it was working till today without any issues. But now I can not open my Intellij IDEA. In fact it is not even launching.
I checked the environment variables and path reference of Java. It is all set. But when I double click on Intellij IDEA it is showing loading sign for a moment but it is not launching. I tried to run the same by going to it's directory and by using cmd. But still it is not launching. When I try to open the 32-bit version I get an error, but I know it is obvious, because I am using a JDK version for 64 bit. I want to know why my Intellij IDEA is not launching. Even after downloading the appropriate Java version and setting up the path correctly. There were no issues till today. I tried reinstalling my Java and Intellij. Still the issue is there. If anyone can help, please let me know the reason.

You are trying to run 32-bit idea.exe while your default JDK points to 64-bit JDK, hence the problem. Please use idea64.exe instead that will run on the bundled JetBrains Runtime.
In case idea64.exe also fails, please run using idea.bat inside cmd.exe to see if there any errors logged in the console.
Perform the steps from this document if the issue is caused by some plug-in or corrupted options.

Related

SceneBuilder not loading in Intellij

Scene Builder does not open in my Intellij. I've tried different JDK versions, but I just cant get it to load up in my IDE. It was working before I had to reinstall my OS. I don't get an error or anything, the Scene Builder window is just blank. It works if I run it standalone though.
I'm on Ubuntu 20.04.1. Using JDK 11 and Scene Builder for JDK 11. I tried with JDK 14 and I still get the same issue. I attached an image of the screen I get.
Any help? Intellij asked me to download the Scene Builder kit, then it asked me to download JavaFX. I did. Then I ended up here. JavaFX was included as a global library though so I didn't quite understand that.
What should I do?
You should go to setting-plugins- search for javaFX and install JAvaFX Runtime for Plugins.
Restart again and the problem will be solved.
The solution for me was 'Settings> Plugins> search JavaFX' to enable and disable this plugin, then restart intellij idea
You can run the SceneBuilder from outside Intellij and simply select your FXML, which works better in some cases, because there are some problems with the BuildIn Version (at least on Windows)
You can download it from Gluon.
2023 Answer
I am currently using IntelliJ Ultimate.
Build #: 223.8617.56
Runtime version: 17.0.5+1-b653.25 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
To fix the missing SceneBuilder issue, I completely disabled the JavaFX Runtime for Plugins plugin and restarted IntelliJ.
When I did that, I received 2 banners to install JavaFX and the proper JDK.

Intellij apparently not getting installed, not running

i have a 32 bit Fedora 14 machine and I am trying to install IntellIJ IDEA on it, I used the package manager to install it. Along with that installation, also Eclipse and Groovy got installed.
Then I tried to install a new version of JDK but it didnt allow me to do so because of conflict with an older version of JRE, So I removed the JRE older version and installed JDK.
Then I have been noticing that IntelliJ refuses to run, I uninstalled and reinstalled and checked several times, but it just refuses to start, Then I opened a terminal and typed intell, hoping that the terminal would complete it for me, and I could launch the program from the command line, but no it said "intellIj:Command not found", whereas the same thing does not happen with Eclipse or Groovy.
I have tried restarting the machine several times, uninstalled and then reinstalled the packages several times, but nothing seems to work. I am not sure whether Intellij is getting installed or not, but the Package Manager does not show any error while the software is being installed. Any ideas as to why this is happening, and how to get around this problem?
You should try to install it manually by just extracting tgz file downloaded from producer website. Then you start IDE by launching IDEA_DIRECTORY/bin/idea.sh

OpenJDK's JDK location

I'm running Minecraft on a headless Linux server with OpenJDK. I've added a bunch too many mods and its lagging (even on my local network) without using too much CPU or memory (e.g. its lagging, but its still got resources it can use). So I'm pretty sure its a mod fault.
To save the hassle of removing/adding mods one by one to see whats causing the error, my research led me to VisualVM where you can profile the java application and see which entities are doing what and with what resources. With any luck it should point out the mod consuming the most resources, and the most ticks.
Given its a headless server, and VisualVM is a window/GUI application, I've successfully managed to get it running and passing the GUI back to my Windows client using X over SSH.
Trouble is now, that its telling me that I need to use JDK and not JRE. Which is fair enough. Except OpenJDK has JDK in its name, rendering all googling futile. I cannot for the life of me, find if JDK is included in OpenJDK, what its named, and where it may be located. The other problem is, most of the troubleshooting guides I find are for Windows, and dont help me find the JDK on linux.
As some background information, I'm running Debian, and I know OpenJDK's JRE is installed here: /usr/lib/jvm/java-7-openjdk-amd64/jre
Can someone tell me please, if JDK is in OpenJDK, or I need to install it as well? If I do need to install it, is there an OpenJDK equivelant for JDK? If its already included, can someone provide some tips on locating it, so I can point VisualVM at it instead of the JRE?
The OpenJDK has a JDK, but there is also a cut down version which is just the JRE. I would use locate javac and if it can't find it, you need to install the JDK.

Salesforce IDE starting error

I have installed the standalone IDE for salesforce force.com platform. On trying to start the ide i am getting "JVM terminated. Exit Code=-1" error. Any idea what this error code means ?
This is a common loading error for force.com IDE.
There are different solutions. Try anyone of these:
A) Change the workspace location.
OR
B) (i). Install Eclipse 3.6 for Java Developers (Helios) from the link http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/heliossr2
Click your operating system from the window on your right.
(ii). Using the below link, follow the instructions to install Force.com IDE plugin for Eclipse 3.6 http://wiki.developerforce.com/page/Force.com_IDE_Installation_for_Eclipse_3.6
OR
C) In the default Force.com IDE install directory:
C:\Program Files\salesforce.com\Force.com IDE
Locate the config file:
forceide
And comment out the following at the end of the file (note the leading #):
#-vmargs
#-Dfile.encoding=UTF-8
#-Xms256m
#-Xmx1024m
#-XX:PermSize=128M
#-XX:MaxPermSize=512M
I hope it works now.
Cheers!
This could be because of various reasons. Say, if you do not have enough memory (RAM) as specified in config file(forceide.ini). As said in this link Force.com IDE – JVM terminated , probably reduce MaxPermSize in config file to say 256M and check.
This exact thing happened to me a few days ago.
My setup is:
Windows 7 64 bit
jre7 64 bit
Force.com IDE 64 bit
When I ran the java auto update to update my jre it installed the 32 bit version (a whole other gripe). So I manually downloaded the 64 bit version of the jre installed it over the top of the 32 bit version and the IDE started working again.

Running Clojure Box in Windows 7

Has anyone had a problem running Clojure Box in Windows 7?
I am trying to run a fresh install of Clojure Box on a fresh install of Windows 7 Professional (64 bit). Java version on system is 1.6.0_16.
emacs starts up but produces the following error messages:
Warning (initialization): An error occurred while loading `~/.emacs':
File error: Searching for program, no such file or directory, java
As a newbie at emacs, slime, swank, paredit, Clojure and Clojure Box, I'm not even sure where to start. I can't even find `~/.emacs'
Thanks for any help you can provide.
Is the directory you installed Java to on your PATH?
I also got the same error by not having Java installed at all prior to installing Clojure Box. It'd be nice if the installer checked for Java's presence and PATH-belonging. Once Java was installed, Clojure Box was working correctly.
You may create .emacs file yourself. See this answer.
One gotcha is that there is a emulation of the 32 bit process on the 64 bit version of Windows so you need to add java files to C:\Windows\SysWOW64 even if you have it in C:\Windows\System32 folder.