I experienced the restore windows bug for several times when I try to open the Open Office or LibreOffice. Usually, my workaround is to remove the existing application and install the new one. I guess the root cause of the problem is I didn’t close each application separately before shutting down my laptop and causing this bug keeps occurring in my application.
When I try to open the application, this window will prompt out:
Neither “Don’t Restore Windows” button nor “Restore Windows” button is working. I cannot use the application to create new documents or view any documents properly. I tried to kill the process via Activity Monitor and it won’t solve the problem as it reappears again when I open the application next time.
Recently, I found the workaround to fix the problem. In Mac, search for the Terminal application and run this command to remove the savedState file:
rm -fr ~/Library/Saved\ Application\ State/org.libreoffice.script.savedState/
Bug 39007 – Persistent “Restore Windows” dialog won’t disappear, disables key functionality
I tried to startup my existing Eclipse and it doesn’t work with the error message: “An error has occurred. See the log file /Applications/eclipse/configuration/1344483936178.log”.
So, I tried to remove the existing Eclipse installation folder and re-install a new Eclipse but the problem still occurs. I did some google work and found this site that provides the workaround which worth to give it a try:
Eclipse on macosx: org.osgi.service.application.ApplicationException: No application id has been found
The directed log file contains the following stacktrace:
!ENTRY org.eclipse.equinox.p2.core 4 0 2012-08-09 13:44:21.828
!MESSAGE Provisioning exception
org.eclipse.equinox.p2.core.ProvisionException: Unknown repository type at file:
!ENTRY org.eclipse.osgi 4 0 2012-08-09 13:44:22.863
!MESSAGE Application error
org.osgi.service.application.ApplicationException: No application id has been found.
Here are the steps that I have done to resolve the problem:
- Remove the following files (My id is 1 instead of 9):
- Find the location of xercesImp.jar via the terminal:
mychin$ locate xercesImpl.jar
- Move the xercesImpl.jar to the /tmp folder:
mychin$ mv /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/xercesImpl.jar /tmp
Relaunch the Eclipse and now it works well.
Few days ago, when I was trying to setup the Atlassian SDK plugin, I need to find the location of JAVA_HOME in my laptop. I knew how to do it in Ubuntu but I’m not too sure how to do it in Mac OS X. After doing some research, this is the command to find the location of JAVA_HOME in Mac OS X:
And the output will be as following (including the command):
I still have a lot to learn as a Mac newbie
Initially, it seems hidden files are not shown in Mac OS X. This blog is really good as a reference: http://www.brooksandrus.com/blog/2007/03/23/mac-os-x-show-hide-hidden-files-in-finder/. I found this command is useful for me to show the hidden files in Mac OS X:
defaults write com.apple.finder AppleShowAllFiles TRUE
And if I want to hide the hidden files, just set it back to false:
defaults write com.apple.finder AppleShowAllFiles FALSE