IntelliJ Will Not Launch After Update - java

Windows also cannot uninstall it, so that I can reinstall it. I have not used intellij for almost a year. I updated Intellij the other day to start using it again. When I try to launch after the update I get this error:
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
java.lang.RuntimeException: Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory.
at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:94)
at com.intellij.openapi.application.PathManager.loadProperties(PathManager.java:519)
at com.intellij.idea.Main.bootstrap(Main.java:94)
at com.intellij.idea.Main.main(Main.java:84)
-----
Your JRE: 11.0.11+9-b1504.13 amd64 (JetBrains s.r.o.)
C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.3.4\jbr

According to the link the error is referencing it could be one of many things.
I would try and Delete the IDE system path (idea.system.path) as that is the easiest done from the list or I would straight up try and re-install the IDE as is suggested as that will probably take care of most of the issues existing.
I would also probably backup and delete the settings directory before re-installing (idea.config.path) and try again. It says that you can do this after re-installing as well but there could be an error in the settings directory that messes with the startup, meaning that the error could be resolved without you having to re-install.
You mentioned that you cannot uninstall or re-install which seems to be an issue with windows itself. If you are running this in an older system I think that re-installing windows might be your only solution (I used to have a similar issue with visual studio community). You could also try to mess around with the registry but if you are not sure what you are doing there I would simply re-install since it is way simpler

Related

JAVA_HOME issue. JDK Seemed to not be installed correctly

I am trying to get Android Studio installed on Cent OS 6.5. I have downloaded and unzipped the package to /usr/share/applications/Android-studio/.
I have installed jdk 8 in /usr/share/applications/ (as I understand you just unpack it there, no need to compile or execute anything...?)
I have appended /etc/profile with "JAVA_HOME=/usr/share/applications/jdk1.8.0_1118"
When I execute the studio.sh file the app begins to run (I see some Java messages in the shell) then I get the error:
"JDK Required: 'tools.jar' seems to be not in Studio classpath.
Please ensure JAVA_HOME points to JDK rather than JRE".
I think this means something is wrong with my JDK files but I don't know what. I have followed multiple tutorials online about how to fix this error including the guides on Android studio and Oracle's websites and as far as I can tell I've done everything correctly, but I am still getting this error. What am I missing?
Thank you for your help.
After looking through some answers to similar questions (that didn't receive any votes so I had overlooked them previously) I solved the issue. I had to copy the 'tools.jar' file from /usr/share/applications/jdk1.8.0_1118/lib to /usr/share/applications/android-studio/lib. That did it. It is up and running. Apparently this file is missing from the package downloaded from the android studio website. I hope they fix that soon and save future users hassle.

android sdk manager initializing but not opening

when I run android sdk manager ,a small window pops up in
eclipse : it says "initializing..SDK manager will show up shortly.
android studio : "starting sdk manager"
but nothing happens afterwards.
till now i have tried following solutions with no luck:
->changing android.bat to proper java/jre directory with/without quotes.
-> running as administrator
-> deleting the .android folder in c:users.
-> making sure that java directory is before windows/system32 directory.
all the above solutions haven't helped at all. the problem remains still the same.
i m using jdk 8. is it true that android doesn't run with jdk8 and requires jdk7?
because this leaves the setting up java7 as the last option.
Please run directly /tools/android.bat to check whether there is any error message. If you get a JDK not found error. Try the following, if not, forget it.
In general, when you set environment parameters, sdk should be in "PATH" "CLASSPATH", but one time, I have the same situation, when I ran an exe to reinstall JDK. I got an error to ask me to use JAVA_HOME if JDK already installed.
So add the JDK path in JAVA_HOME to have a try.

Eclipse isn't starting

So I downloaded Eclipse Kepler for a beginner's course in java programming. After completing a few activities, I took a break for about a month. None of these programs are really important, so if I need to delete them, that's fine. When I went to open eclipse for an activity about a week ago, I double clicked it and nothing happened. Occasionally, if I moved Eclipse to another folder or something, it would give me a warning message about how it couldn't locate its partner in a shared library. So then I googled my problem and found a solution about deleting something in the workspace/.metadeta/.plugins but I couldn't find that directory. I'm assuming that "workspace" is supposed to be a folder in the C:\eclipse, which is where I installed eclipse, but I couldn't find it anywhere. I found a folder just called "plugins", but deleting that didn't help at all. Finally, I uninstalled and reinstalled it to no avail, then I installed Eclipse Luna I think it's called (whatever is the most recent eclipse to download on the eclipse website) and it wouldn't open either, but when I double clicked it, it sent me this pop-up.
(I would put the picture here, but apparently I need "10 reputation")
Not sure what that means.
But it did seem to be some sort of log and it said "Java was started but returned exit code 13" and then had a whole lot of text after that.
TL;DR:
Can't open Eclipse Kepler or the newer Eclipse. I also can't find the workspace/.metadata/.plugins directory thingy that supposedly solves this problem
Any ideas on how to get Eclipse working again?
Open the eclipse.ini file and add, (make sure it is before -vmargs):
-VM
[path to x64 verstion of jdk]
For example:
-VM
C:\Program Files\Java\jre7\bin
Depends on your Java version, make changes to jre7. Also the reason is because you installed x64 version Eclipse, so you need to download x64 version JDK.

Android Studio - Can't open AVD/SDK

Sorry if this is the wrong Stack Exchange, but this is where most of the questions were asked when I googled my problem.
For some time now I've been having problems with Android Studio and the AVD/SDK. It seems to be a relatively common problem, but I haven't been able to fix my problem with any of the solutions that worked for everyone else. This is the error I'm getting whenever I try and run the AVD or the SDK:
Cannot launch AVD manager.
Output:
Access is denied.
ERROR: No suitable Java found. In order to properly use the Android Developer
Tools, you need a suitable version of Java JDK installed on your system.
We recommend that you install the JDK version of JavaSE, available here:
http://www.oracle.com/technetwork/java/javase/downloads
If you already have Java installed, you can define the JAVA_HOME environment
variable in Control Panel / System / Avanced System Settings to point to the
JDK folder.
You can find the complete Android SDK requirements here:
http://developer.android.com/sdk/requirements.html
I've tried re-installing everything Java (Both JRE and JDK), reinstalling Android Studio, running as admin, configuring permissions and a bunch of other stuff. I'm running Windows 7 and I've tried both JDK/JRE 6, 7 and 8 (JDK 6 worked very poorly though). I don't really know what kind of information you need to help me solve this problem, but I'll supply any information needed as fast as I can. Thank you very much.
Edit:
Please note that Java IS installed. Both Java and Javac is working fine in cmd.
I can suggest that Go to Windows -> Preference -> Java -> Compiler
And try with different java version.
Probably your Java folders are in the path (and that's why they work from CMD) but your JAVA_HOME is not defined.
As you are on Windows try creating a System Variable following those steps
Try (re)installing the ADT and see if it works. If not, go to the sdk's root folder ([PATH TO THE UNZIPPED ADT]/sdk) and open the AVD Manager.exe. Does it still give you the same error? If not, try to open the SDK Manager.exe and make sure you've installed all the propper APIs. I'd recommend installing at least the SDK Tools and Platfom-tools, and all of API19 (Android 4.4.2).
Finally Solved my problem! Some software I had previously installed had created a Path in User Variables, which was the one I was using for my JDK path. I tried using the Path in System Variables and it worked just fine! Thanks to everyone who took time to help me.

failed to load the JNI shared library "C:\Windows\system32\..\jre\bin\client\jvm.dll\" ECLIPSE

I was working on some stuff a few days ago and today I went to open eclipse I got this error:
"failed to load the JNI shared library "C:\Windows\system32\..\jre\bin\client\jvm.dll\" "
Could someone please help. I have looked over about 20 Stack Overflow things like this and none of them have worked for me.
Looks like your eclipse cannot find a proper JRE. Make sure you have JRE or JDK installed and JAVA_HOME environment variable is set to a valid JRE installation path. Also note that 32-bit Eclipse will only work with 32-bit JRE and same applies to 64-bit version.
If nothing works you can point Eclipse to JRE manually by editing eclipse.ini file. See this article for details.
“Disclaimer I did not find this solution myself. I came across this error message for the second time when installing the android SDK and remembered how to fix it, but don’t remember where I got the fix from so cheers to the guy who figured this one out:)”
The fix is simple locate
C:\Windows\jre
And delete or rename it. Happy Coding!

Categories

Resources