I run IntelliJ IDEA version 2019.2.3 on a Windows 10. We use the same version at school. It works there, but not on my home laptop. I've set the environment and CMD shows the correct path of Java. The JDK 1.8 is also properly installed. Please , what could the problem be ?
I want to thank everyone for taking the time to give a helping hand !
The answers I received via Support at Jet Brains crashed the app or made it unusable. The FAQ links they provide is a collection of vague workarounds. And, especially for someone that is a total beginner and has no guidance in editing non-destructively, it won't work.
I would also like to post the only solution that worked on the Cyrillic issue with IntelliJ Idea, since I know other people have had it as well and I hope it will be useful for others in the future. This came from my teacher at Link Academy Bucharest, Mr. Bogdan Posa.
The actual thing that needs to be modified is the existent file called idea.properties, found in the BIN folder within the Idea installation folder. This only worked after I had re-installed Idea in a different place than "C:/Users/Cyrillic username/" which Idea was picking by default to install itself. So it will be something like C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2019.2.3/bin. The idea.properties file can also be opened with Notepad to avoid crashing Idea (happened many times). Within the text editor, find and edit the value of idea.config.path, removing the comment and writing the new location/path of the Idea installation folder. Windows might not allow you to save the edited idea.properties file in that original location and it might ask if you want to save it in the Documents folder instead. Just say yes, save it there and then copy/paste it back to the Bin folder, it will accept it. After this, you will have to open Idea with "right-click open as Administrator". Apparently, as long as there still is a path containing Cyrillics in a username, Idea will not run your project so if you can't avoid it, just play along and Run as Admin when opening Idea. That's how it NOW WORKS for me, after several re-installing and changing properties, environments and every damn thing. I was close to hugging ECLIPSE.... :) Hope this helps, Cyrillic users !
No, not at all. This is a kind of wird exception.
You can change the config location of intelliJ.,
This can be done in:
IntelliJ Menu: Help | Edit Custom Properties…
Then it will create a file under: IDE_HOME\bin\idea.properties
Example of the configs:
idea.config.path=c:/work/idea/config
idea.system.path=c:/work/idea/system
idea.plugins.path=c:/work/idea/plugins
More info:
https://intellij-support.jetbrains.com/hc/en-us/articles/207240985-Changing-IDE-default-directories-used-for-config-plugins-and-caches-storage
Related
I tried the other solutions but they didn't worked, so please don't just say "It's a duplicated so now you have to open this link." Because I tried them.
I have Windows 8.1 and I installed Java 8 JDK some days ago, now I unistalled it because I've had some problems with it (like the PATH for cmd was not set), and after unistalling it I tried to open the Java installer, after the UAC popup nothing happen. I tried opening the installer "sandboxed" with the program "Sandboxie", the Installer opened 2 services, after a few seconds another service opened and then every service closed.
I have no error, no logs, nothing.
P.S.
I tried downloading again the installer 3 times, nothing changed.
Edit:
JRE Installer doesn't start either.
Edit:
I'm actually in safe mode with internet connection and the installer still don't want to run... I don't know what to do now...
I tried with "sfc /scannow" and it said there was no problem, I tried "DISM.exe /Online /Cleanup-image /Restorehealth" too, no problem got reported.
Edit:
I tried running the installer with a Guest account, nothing changed. Anyway I found a solution.
I searched for everything that contains "Java" in C:\ and I found some value (that could have prevented Java Installer from running because it thought Java was already installed), I deleted them (carefully, don't just delete everything on your computer, that's not the way.)
Now I tried launching the installer and.. Here we go! Finally I can install it.
Thanks to anyone who tried to help me, I appreciate it.
In my case problem was in C:/Users folder. Initially my OS language was not English, after changing, it causes some errors. I couldn't install jdk, couldn't run some desktop tools. After looking for the solution, I could found it. My user name in Users folder had non English letters. So, I changed name of user and it solved my problem:
https://superuser.com/questions/890812/how-to-rename-the-user-folder-in-windows-10
You should add java in Path:
Open the System Properties.
Find the Advanced Tab in the Properties Window. Click Environmental Variables.
Scroll down in the System variables and find the PATH variable.
Select the PATH variable and click the Edit button.
Add the Java installation path to the PATH variable (dir_java/bin)
And also create system variable JAVA_HOME
What antivirus are you using?
If your av has some kind of process viewer that you can use to see when it starts and when it terminates and if it is marked a suspicious. Here is a screenshot from my av. I use comodo image here
If your av doesn't have this feature, try turning it off during the installation. Remember to turn it back on after you're done
I am just starting off in Java and trying to follow buckythenewboston on you tube. I have java and eclipse neon both downloaded correctly. However, when I create a new project like he showed in the video, I click finish and nothing shows up, in the video it showed on the side there should be a like java symbol with the name of the project I created. Well nothing happens it is blank on my screen. I tried opening a file from the work space in my C drive and that doesn't work either as nothing shows up so I can create a class. I know there is a couple of forum questions with similar title but that is different I think as they can at least get code in where I can't. Any explanation as what is going on would be helpful. I also tried to go to file-import-existing project... but the existing project part isn't an option.
Thanks in advance.
go into your workspace directory and delete .metadata folder, then restart eclipse
Close all perspectives and open a new one, the one you like.
I'm new to Java, I started to use it a year ago.
I was using IntelliJ IDEA Community Edition, but I decided to install the full version of it, and then something went wrong. It always stays in kind of "Decompiled" mode and does not allow to edit file or work with it. I reverted back to the Community Edition, but the problem did not disappear.
Can you please help me how to get to normal mode to work? Any help is appreciated.
It looks like you're opening the class files within the left hand navigation window. Find the source code instead (the .java files) and open those instead - then everything should be normal.
(Look at home05\Solution.java for example, instead of home05\Solution.class...)
Please look at the "src" folder and not the "out" folder. The out folder in intellij shows the decompile version of the code.
In Intellij you need src, not out.
Example is here
Yesterday, i've Closed Eclipse & then Turned Off The Computer, Now it's appear that a Crash has occured, when i started Eclipse again, Project List was empty So i've imported the Projects Again,
Problem : a Java Files is now corrupted, the file size seem correct, i can Open the File but the File is filed with "NUL" when i open it with a Text Editor & is empty when i open it in Eclipse,
I've tried to use the History Features of eclipse but there is No Any Backup in the .History Folder, only empty folders,
Is there any way to recover this Damaged .Java File ?
Thanks
if you use SVN, or other version controls, or ever back up your PC, you could look at restoring it from there. However, by your description, this doesnt seem likely.
Noting from your comments you have tried a system restore.. System restore points and backing up your PC are two different things.
Right click on your file -> Properties.
The click "Previous Versions" along the top.
It may say "There are no previous versions available", or may offer a restore choice.
Perhaps if you had previously deployed the project you can get at the class file and de-compile the class back to code but that may still result in some loss. Also just try doing a search on your machine for that file name perhaps it was backed up by you at an earlier time that you forgot about.
I am configuring my study environment :) on Linux server: I have installed java, oracle database, tomcat, and I have set JAVA_HOME, ORACLE_HOME variables for all users and modified the .bash_profile files as I read it is the only way to make things permanently set. However I am not sure what variables do I need to set for TOMCAT, when I try to start tomcat from another user different from root[even here I have to go inside tomcat's bin folder], I see that the process is trying to use CATALINA_HOME, CATALINA_BASE,CATALINA_TMPDIR and CLASSPATH [for bootstrap.sh (I am not sure why it needs bootstrap.sh)], anyway my question is which variables do I need to set for tomcat? Do I need to set all of them in root and all other users .bash_profile files? I need some clearification because I am really fed up with configuration having a lot to know beyond that, just need help.
More to that I think I have installed MAVEN [MAVEN_HOME not set either], I say I think because when I try
locate maven
I have the following result:
/etc/maven
/etc/maven/maven2-depmap.xml
/usr/local/apache/tomcat/apache-tomcat-6.0.37/webapps/docs/maven-jars.html
/usr/share/java-utils/xml/maven2jpp-mapdeps.xsl
If I try the following I have not output
locate maven | grep bin
[Not sure if this is a good question to ask the server, since deep in /etc/maven ls -la show me there is total 32 but I can only see maven2-depmap.xml]
The question is, looking at the files found when I tried locate maven, can anyone tell if I have installed it or not? :):)
Further I need To install GIT following some installation guide I had found it is been a week I don't really remember which one was that, I started by downloading curl_devel, gettext_devel some other *_devel stuff [I don't know what they are and not sure if I should know about them] and when I tried to install them, they required git to be installed I looked around for git packages to download but after 7 to 10 minutes I didn't find where I can really get git packages, but since I didn't give it much attention this question is not as important as others. what I want to know is, once I get git installed which environment variables will I have to set?
Thank you very much for taking time to read and help. I appreciate.
I think the other simple round about can the changing the user of the TOMCAT. Set it to the root user.
This will be useful only if you have set correct path and tomcat is working properly with root user.
I also dont know if this is recommended or not.