"Save could not be completed" errors with Eclipse and MySQL Workbench - eclipse

I'm having a weird problem saving with Eclipse and MySQL Workbench. I am using Eclipse Java EE Indigo Service Release 1 and Workbench CE 5.2.24. My java is version 1.7.0_01. I am running on a Windows 7-64 machine.
I have some files on a network drive. If I edit one in Eclipse and try to save it, I get "Save could not be completed" with the reason "The system cannot find the path specified". Eclipse can successfully edit other files on the same drive. Also, another version of Eclipse on a different machine (32 bit Java EE Indigo) can edit and save the exact same file that the Eclipse on my laptop cannot save.
If I edit a model using Workbench on the network drive, I can modify the model just fine. If I try to export the script however, I get the error "Could not save file ". Failed to create file .KWLQCW". No such file or directory. I am trying to overwrite an existing script when I do the export. Again, using Workbench (same version) from another machine can make the modification that the Workbench on my laptop fails to.
I can edit or change both of these files using other editors with no problem. In fact, when I change do change them, Eclipse requires me to refresh them, but then can't save after editing them.
Both Eclipse and Workbench work just fine if the files are on my C drive. All of this was working last week and I cannot think of a configuration change I have made to my machine. I'd be grateful for any advice on debugging this.

I'd suggest you to try with the most recent MySQL Workbench version (5.2.39). The 5.2.24 version you are using is quite old. You can download Workbench here.

Well, I seem to have solved this by deleting the parent directory, recreating, and repopulating it. I can only imagine that the file system got corrupted somehow.

By changing the permission of the file and directory , the issue got resolved

Related

How to recover a .java class in an Eclipse project?

I opened the Eclipse as usual from an installer (I downloaded the complete jBPM engine and Eclipse is included with it). I open it from a command prompt. When I opened the Eclipse I found it is empty as it is installed recently. no projects or tabs or anything.
I reopened the project I am working on and found that the main file that containing the code is empty (it is one line with hidden words). I opened the project from its location on the hard disk and I found the file is also empty but I can see that there is something on it.
I tried to open the project on Netbeans but the problem is still exist. I tried to open the file from the local history but I found nothing in the history. Unfortunately I didn't take a backup from my last work. I don't know what to do right now, if you can help it will be appreciated. I attached here a picture for the eclipse with the empty file:
If the project is already deployed in some server then you can decompile them from deployed folder(i.e : webapps folder of Tomcat)

Trying to redo my Eclipse "installation"

I am trying to delete the folder that I unzipped eclipse into (I did it on the desktop for easy access). Every time I try, I get an error saying that it cannot be done because the folder or a file in it is open in another program. I have no programs running at all, and I still can't delete the folder. I am using Windows 8, Eclipse Juno, and am trying to download the C/C++ version so that I can do C++(got the CDT plugin, but can't find g++). Now, all I really want to do is completely get rid of Eclipse so I can start from scratch.
Use Unlocker to solve the issue about not being able to delete the folder.

"Unable to locate JAR/zip" error for JDBC connections [BIRT Eclipse, Windows 7, Oracle 11g]

As an FYI, I'm new to this entire stack, so I might be making a basic error.
I'm attempting to explore BIRT reporting for a Maximo system that was recently upgraded.
To do so, I installed the following:
Java 6 & Java 7 JDKs
BIRT version of Eclipse (Eclipse + BIRT plugins built in).
Some Oracle 11gR2 client options (a custom install)
SQL*Plus
JDBC/ODBC drivers
Thin Client
I take the following steps:
Open Eclipse
Create a new Reporting Project
Add a Data Source
Select "JDBC Data Source" (also tried "JDBC Database Connection for Query Builder")
Select the "Oracle" connection profile type and click next.
At this point, I see that the drivers list is empty. This strikes me as odd, but I figure maybe I have to define the driver definition. So I take the following steps:
Click "Define driver definition"
In the Name/Type tab, select "Oracle Thin Driver", system version 11
At this point, I see an error message: Unable to locate JAR/zip in file system as specified by the driver definition: ojdbc14.jar. It seems that ojdbc14.jar doesn't even exist on my system that I can find.
I have tried adding other jdbc jar files that I can find in the oracle client directory (i.e. from Oracle_Base\product\11.2.0\client_1\jdbc\lib) but nothing seems to resolve the issue.
Help?
I had similar issue.
Clicking "Clear all" and then adding the jar manually solved the problem.
The answer in this case was unfortunately stupidly simple -- after closing and reopening Eclipse, I had no trouble removing the driver, adding another, and getting to work. I was up and running in no time.
Thanks for all your help!
Ensure the ojdbc14.jar file exsists and is in your library path. When on the dialog for picking the driver ojdbc14.jar, simply click the find jar/zip button and find the file.
Sometimes it is there, but still does not work. To solve this problem, press the "clear all" button. Now repeat the above process. The .jar will be added and you will continue to driver connection and details dialog box.
This happens because the Eclipse IDE could not find the driver in the eclipse installation path. This is what you will do:
Search for the .jar file in your system and copy it to the eclipse installation path.
If you could not get it visit http://dev.mysql.com/downloads/connector/j and locate the required connector. Download it and save it to the eclipse installation path. So now Eclipse can see it and the error would no longer appear.
Very simple answer is Into the Jar Console Click on edit jar and Again select jar in your file system. that will locate file in your file system simple

Eclipse workspace UI layout reset

Every time I open Eclipse, I get the error:
Unable to read workbench state.
workbench UI layout will be reset.
Naturally, any UI changes I have made are not saved. I have tried:
Making sure that I have write permissions to the directory and its contents.
Deleting the .plugins/org.eclipse.ui.workbench directory
I am using:
Eclipse Java EE IDE for Web Developers.
Build id: 20090621-0832
The OS I'm using it on is Windows Vista.
Thanks for the help.
One of your plugin must cause a conflict during the startup sequence.
What your eclipse log file includes about this?
Check the ".log" file in the ".metadata" directory of your workspace.
Did you have an older version of eclipse, with a workspace you are reusing with this new version of eclipse?

Is there any Eclipse plugin which autobackup a project every so and so minutes to an email a/c?

Is there any Eclipse plugin which autobackup a project every so and so minutes to an email a/c?
After doing some research, I found that such a feature is already present in Eclipse. Eclipse stores every new edit in a file in the following backup folder present in the workspace folder .metadata:
{Eclipse root directory}/.metadata/.plugins/org.eclipse.core.resources/.history/
The backup can also be accessed from right clicking a file and choosing "Restore from Local History...". However, when it comes to emailing the code, there is no such function that comes with default version of Eclipse, so I guess I do need to learn Eclipse Plugin.
Here are some relevant links:
http://www.nodans.com/index.cfm/2008/1/18/How-to-recover-a-deleted-file-in-Eclipse
http://wiki.eclipse.org/FAQ_Where_is_the_workspace_local_history_stored%3F
Take a look at Subversive/Subclipse
Installing a CVS would do it, but any backup utility software running in the background would also work.