Eclipse issue - View not getting displayed properly - java

My Eclipse is not opening the java files properly even after a restart. Could you please let me know on what is to be done

The problem is with eclipse supporting file,you have missed some of the files
just delete Eclipse and download it once again it will work perfectly i did the same its working for me.

Try uninstalling eclipse, restarting PC, and then reinstalling eclipse. If that doesn't work try making sure that your graphics drivers are up to date. Lastly you may report the bug and/or search for a similar bug at eclipse.

go to eclipse > Window > Reset Perspective ...hope this will resolve your issue

You can try Window -> New Window and close the old window. Restart Eclipse.

Related

Ctrl+V does not work in IntelliJ

A while ago, Ctrl+V stopped working in Intellij IDEA. Neither the shortcut nor Edit > Paste works. It's really weird, since "Paste Simple" still works fine, so does Ctrl+C and Ctrl+X.
I've seen a lot of suggestions to solve this problem, but most of them are somehow related to the Vim Emulator for IntelliJ, which I don't use. I tried to play around with the Keymap, but could not get it to work.
I'm using Intellij 2017.2.5 on Windows 10. Maybe I screwed it up myself somehow, but I wish to fix it, because it's really painful to work without Ctrl+V.
You can try alternatives:
Ctrl + Shift + V for Windows or Linux
or
You might try Ctrl+INS for copy and Shift+INS for paste and
see if they work. They are the traditional cut and paste and have been
around a lot longer than Ctrl+c/Ctrl+v
I had the same problem, I regularly reboot so I always have a back-up of my settings. When I reimported them and updated the plugins I could paste again without issues.
Back-up your settings from a working state File>>Manage IDE Settings>>Export Settings and use >> >>Import Settings to apply them.
If you don't have a back-up you can try it, but you might be backing up the problem as well. In that case you will have to reset to defaults and reset the IDE to your liking.
My OS is Ubuntu 18.04, and i had this problem before. An effective solution for my IDE is to set the Keymap to Default, which is file>setting>Keymap.

Intellij IDEA can not find tools.jar

I install Intellij IDEA 15.0.2 on Windows 8.1, run it, it asked for the path to jdk, i choose directory with JDK, and then IDEA worked correctly. But after reload of PC, I get this error message from IDEA - 'tools.jar' seems to be not in IDEA classpath..So, I check JAVA_HOME from command line, check for tools.jar in JDK_directory/lib, everything is on their places, how to run IDEA?
Open IDEA. Select [File]-[Invalidate Caches/Restart] menu and select "Invalidate and Restart" button. Have a try. :-)
I think you didn't set up JAVA_HOME. Try to add JAVA_HOME=</path/to/JDK> variable to your PATH. For example JAVA_HOME=C:\Program Files\Java\jdk1.8.0_66
A few years later, this still persists. I had this issue with java 16 and IntelliJ has it logged here as well. I tried a bunch of things including invalidating the cache and restarting. No luck.
Try Updating IntelliJ as they suggest in the linked website. That did the trick for me. FWIW, I was on IntelliJ IDEA 2020.1 and updated to 2021.2.
By deafault, idea.exe runs, but if you run instead idea64.exe, everything works correctly.

NetBeans 8.0.2 Java "Project Folder already exists and is not empty"

I've been getting this error message when I want to create a new project in NetBeans. There are two old answers for this question, Project Folder already exists and is not empty- Error in netbeans and Netbeans error: Project Folder already exists and is not empty. Not only they are addressed for NetBeans 7, but also they didn't work.
I tried:
deleting project directory,
deleting userdir under C:\Users..\AppData\Roaming\NetBeans,
deleting cache under C:\Users..\AppData\Local\NetBeans,
uninstalling and installing 8.0.2
updating JDK to 8.40
but none of them worked!
I really appreciate if you'd suggest a solution. Thanks already!
SOLVED: I uninstalled NetBeans from C directory and installed it to the D directory. Then while creating a new project I choose a directory under D. It works fine now!
There is a 99% chance that this is caused by your antivirus application.
You can check on allow file modification for NetBeans in your antivirus application.
I have Bit-defender total security 2018, so if you have it follow me:
Open Bit-defender
On protection tab click on (View features >)
Either you disable (Safe Files) or allow access for NetBeans.
By the way I think Bit-defender is blocking applications to access files on the C drive if I'm not mistaken, so that's probably why it worked for you when you put it on the D drive...
Go to Program Files, delete the NetBeans folder and reinstall it.
Go to C:\Program Files (x86) and delete NetBeans Folder And try to install it again
This might be because of your antivirus. I got the same problem sometime back.
I then switched off the DataLocker option in my antivirus app, after this the problem didn't recur.
I had the same problem when i was messing around with some templates, after undoing the edits and saving the error message stopped occurring.
When netbeans says project folder already exists, it isn't a total error. It still creates the project, it just ran into an error while re-creating one of the template files. If you have the original tab still open, all you have to do is undo to the point before you ruined some template.
Uninstalling and re-installing will fix the problem but i hope this knowledge helps.

Eclipse not starting after hanging

My eclipse was working till now. After installing new software in the eclipse, it closed down and whenever I try to restart it, a dialog box appears saying:-
An error has occurred. See the log file in Workspace.metadata.log.
For the log file. please visit:-
https://docs.google.com/file/d/0B6ZcK0Ed_jdCMFA2RjBPUGdjeHM/edit?usp=sharing
Can any one tell me how to resolve this issue.
I know that I have the option to install Eclipse again. But I want to know is there any other way other then reinstalling?
It looks like some of the sub-components in the eclipse directory have been corrupted, possibly during an update or forced close of eclipse. You probably are best reinstalling it (point at the same workspace and you will only lose your preferences- better than losing everything! If you are using Java EE you may lose the servers depending on whether they are stored in workspace or in eclipse).
If you dont want to reinstall, you could try copying the plugins folder from a fresh copy over the existing folder. Then start eclipse with the -clean option
Edit: If you have updated anything, make sure it is for the correct version of Eclipse- wrong versions of plugins/updates can cause this kind of problem.

Netbeans keeps on restarting

I've installed the Nokia sdk 1.1 and chose to integrate the sdk with Netbeans IDE. Afterwards I tried closing the Ide but the Ide keeps on restarting and reinstalling the plugins. What can fix be the problem? I tried restarting the computer but still no change. The Ide wont stop restarting. Thanks
I got the same problem. It happens because NetBeans does not have enough privilege to update. Kill NetBeans by Task Manager -> Right click on the shortcut -> Run as Administrator. Now when you close NetBeans, it won't restart anymore.
I had similar problem where Netbeans automatically restarts after closing it.
I found that it tries to update JUnit plugin in the starting of the program but cannot complete successfully.
Then, I run Netbeans as Administrator and the problem is solved now.
Apparently this problem is caused by failed updates. In my case, the solution was to go to Netbeans’ installation path and empty the subfolder enterprise\update\download completely. After that it started normally again, and a new attempt to install the update was then successful
This site worked for me:
http://blog.ginchen.de/en/2013/09/26/netbeans-startet-nach-dem-schliessen-sofort-neu/
For Mac OS users: You can fix this by creating an AppleScript with the following code:
do shell script "/Applications/NetBeans/NetBeans\\ 8.0.1.app/Contents/MacOS/netbeans" with administrator privileges
(adjust the path to your NetBeans installation as needed), and exporting it as an application. When you launch it, the system will ask for administrator privileges before starting NetBeans, the updater works as expected, and NetBeans stops restarting all the time...
Right click on the shortcut
go to properties
click on advanced
check the box that says "Run as Administrator"
Just start Task Manager and kill the Netbeans process. Now your Netbeans IDE will stop restarting. Now run Netbeans IDE as an administrator. Now it won't restart. Enjoy! That solution works for me. I hope it works for everyone :)
there are 2 ways:
1- You can end task the "update" from the task manager. It solves your problem for this time but you will have the same problem when you open the Netbeans again.
2- Run Netbeans as Administrator. It will give the updater to finalize the updates and it will fix the issue forever.

Categories

Resources