Workspace is locked.
If you encounter the situation which Eclipse says:
“Could not launch the product because the associated workspace is currently in use by another Eclipse application.” or “Workspace in use or cannot be created, chose a different one.”
Just delete the
.lock file in the
.metadata directory in your eclipse workspace directory.
Install Eclipse IDE and Java/C++ development tools on Ubuntu12.04 LTS Precise Pangolin using command line
Original link: http://www.inforbiro.com/blog-eng/ubuntu-12-04-eclipse-installation/
1) Open a terminal and enter the command
sudo apt-get install eclipse-platform
2) After Eclipse is installed you can install development plugins based on your needs, e.g.:
will install Java Development Tools (JDT) package for Eclipse
sudo apt-get install eclipse-jdt
will install C/C++ development tools packages for Eclipse
sudo apt-get install eclipse-cdt
Replace tab with spaces in Eclipse CDT:
Original from here.
For CDT: Go to Window/Preference -> C/C++ -> Code Style -> Formatter -> New (create a new one because the built in profile can not be changed) -> MyProfile (choose one name for the profile) -> Indentation, Tab Policy –> Spaces only
I was having an error when compile one piece of code within Eclipse.
java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version;/CareMonths, offset=6
Got some help from here, which thinks that the reason of the error is because of the unmatched jdk version. And of course, install it.
So tried a simple fix, and it works:
1. go to here download the right version, I am downloading the newest version because of my code.
2. In your eclipse, go to Window->preference->Java->Installed JREs.
From where you can find your current version& its path. Do ‘Add’ add the newest installed JDK <> . If you are using window, the default installation path is <C:\Program Files\Java\jdk1.7.0_17>. Check this version for your project.