Eclipse error - while creating backup for 'project-desc' - java

When I try to create a new Java project in eclipse indigo on Windows 7 I get the following error with a JDK 1.6:
An error occurred while creating project. Check log for details.
Reason:
Problem while creating backup for 'project-desc'
The system cannot find the path specified.
Has anybody seen this or resolved it before?

Looking at the log file told me the same thing - eclipse thought a valid directory path was invalid.
It turns out my eclipse install was corrupted - on deleting it and replacing it with a new one everything worked fine.

Related

"Cannot create folder s37 in folder" in Netbeans 8.2 and JDK 8

I am getting this error saying Can not create folder in
s37 or s36 like this. I have uninstalled JDK and NetBeans together and installed again. But seems like the problem is coming back again again!
I really appreciate if someone has any good solution.
Here is a screenshot of the error message:
There is a NetBeans Bug Report related to your issue: "Bug 269339 - Infinite pop ups: Cannot create folder s38 in folder /Users/33070/Library/Caches/NetBeans/8.0.2/index"
Based on comments in that bug report, the easiest approach to solving your problem is:
Check whether your directory /Users/kabir/Library/Caches/NetBeans/8.2/index exists, because if it doesn't that would explain the error messages.
If it doesn't exist then manually create that directory to see if that resolves the issue.
If that doesn't work, or the directory already existed, then try deleting/recreating your cache directory. To do that:
Determine you cache directory. You can get its full path by selecting Help > About, then looking for the Cache directory entry in the About window.
Close NetBeans, delete that directory, then restart NetBeans.
If you are still stuck after that:
Build your project to reproduce the problem.
Open the NetBeans log file: View > IDE Log.
Update your question by copying/pasting the recent content of that log file.

When using Intellij 2017.1 it repeatedly says: Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA

This error pops up repeatedly whenever I try to do anything with IJ, rendering it useless. Has anyone else run into this and successfully fixed it? I'm about to fresh install and reconfigure, but decided to post here before doing something that drastic.
I've done the following to address the problem:
chown 777 on all config and IDE directories
Removed all plugins except the most well known ones such as IdeaVim
Clear cache & restart
Re-import simple POJO project and try to compile
I can't reproduce it right now, but "an internal IDE error has occured" also occurs occasionally at the same time, which says it is caused by an AbstractMethodError, with the message "Z is abstract", but I don't know if the two are related.
It looks like your IntelliJ IDEA installation is corrupted. It can be caused by the malfunction during the patch update or if you have unpacked the .tar.gz file into the existing directory (on top of the previous version).
Download from http://www.jetbrains.com/idea/download/index.html and unpack into the new empty directory, it should fix the problem.
Failed to save settings is a generic error; it can be caused by multiple issues. Check the logfiles to find out the specific reason why it fails. That should give you more information for troubleshooting.
In my case, it turned out to be caused by a plugin. Then I saw that an update was available for that plugin. After upgrading and restarting, the error was gone. Note that in your case, it might be something else.
On my Linux installation, the logfile was stored in ~/.cache/JetBrains/IdeaIC2021.2/log/idea.log. For Windows and MacOS, the paths are different.
I got the same error.
Looked in ~/.IntelliJIdea2018.3/system/log/idea.log.
There I found a RuntimeException:
java.lang.RuntimeException: java.io.IOException: Cannot save C:\sandboxes\tias\.idea\workspace.xml.
Unable to delete an intermediate file (workspace.xml___jb_old___).
So I deleted the file workspace.xml___jb_old___ (I had to restart windows, the file was in use) and the problem is solved.

under hange root environment: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

Actually I have solved the problem but I don't understand why it works.
I have been developing under a change root environment, which was configured by someone else. I tried to use java command, but got that error message in the title.
After searching for solutions to this problem, I found no one works for my situation. Then I downloaded the newest java package from Oracle website and put it somewhere in my change root environment. By running ./java in .../jre.../bin, I tried test whether this new one works and it did work.
Then the thing I cannot understand happened. After testing the new jre, the old java command is fixed and I don't get the error message any more. I have used "java -version" to check the version of the java command and it was the old version.
Can someone explain?

Error when opening package explorer and when trying to open java classes in Eclipse

Getting this strange error in Eclipse (Helios). I can't show the package explorer.
Could not create the view:
org/eclipse/jdt/internal/corext/codemanipulation/tostringgeneration/ToStringGenerationSettings
(wrong name:
org/eclipse/jdt/internal/corext/codemanipulation/tostringgeneration/ToStringGenerationSettings$CustomBuilderSettings)
Same error when trying to open a java class file. Any clues?
Agreed with Arne's and Gilbert's comments. If this is still an issue, a few things you can try to resolve:
Try a new workspace (using the same Eclipse installation).
Trying a new Eclipse installation (using your same workspace). This would also be a good chance to upgrade to the latest version of Eclipse, now 3.7 / Indigo.
(Primarily posting this answer in an attempt to either get this question some additional attention / competitive answers, or at the least, to simply remove this from the growing list of unanswered questions.)

Import Java-Applet Project in Eclipse

# home i built a java applet in eclipse now i want to port it on my working computer...
eclipse version is the same as # home and jdk also.
i get following error:
Description Resource Path Location Type
The project was not built due to "Could not delete '/ProgramApplet/bin/de'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent ProgramApplet Unknown Java Problem
Possibly some kind of permissions error. Try deleteing the bin/de directory.

Categories

Resources