Month: June 2008
-
Jailhouse rock for the society
A jailhouse is probably one of the worst places to be, as an inmate, and one of the least positive places, for the society. The more interesting is an example of what can be made out of such a calamity. Here’s a documentary video of Mr. Garcia, manager of the CPDRC prison in the Philippines, […]
-
How to solve a “java.lang.LinkageError:
” between two JAR files? A java.lang.LinkageError happens when “a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class.” [Java Platform SE 6 API Docs on LinkageError]. Normally, the error is more concretely defined by subclasses of LinkageError, but not always. There are multiple reasons possible: You have […]
-
How to fix a “NoClassDefFoundError: [some class]” error when developing Eclipse plugins?
Here’s one solution to one cause, there might be other causes as well. The error means that the class definition existed when compiling but disappeared in the meantime (see Sun Documentation). You see this from the fact that this error message is thrown e.g. when deleting a necessary .class file in the bin output folder […]
-
How to correct wrong / missing SVN annotation icons in Subclipse 1.2.4?
Annotation icons are the small icons placed on top of other icons, mainly in the package explorer view of Eclipse. In Subclipse 1.2.4, it can happen that these are no longer shown (or incorrectly shown), though the project is in SVN. To correct missing icons, restart Eclipse or switch the workspace forth and back. To […]
-
How to correct the error “dir .svn missing” when using “Team -> Share project …” (of Subclipse 1.2.4)?
The full error message is: org.tigris.subversion.javahl.ClientException: svn: Directory ‘[…]/.svn’ containing working copy admin area is missing And when creating the .svn directory yourself in your local directory, the following error appears: org.tigris.subversion.javahl.ClientException: svn: Unable to lock ‘<plugin project name>’ This seems to be a bug in Subclipse 1.2.4. The solution: do manually what the “share […]
-
How to create a Java project in Eclipse from an existing JAR file, that way that the JAR is not uncompressed?
Create a new plugin and choose “from existing archive file”. If you want to add the JAR file to an existing project, the simplest way is to import the JAR file using “File -> Import …”. You now need to tell Eclipse that it’s something where Eclipse is allowed to read executable code from, i.e. […]
-
How can I register a JAR library that’s part of my Eclipse plugin so that it’s accessible from the plugin and so that “PDE-Tools > Update classpath…” can be done without losing this registration?
What works. You need to include the JAR in the MANIFEST.MF file: when using the MANIFEST editor from Eclipse, navigate to tab “Plugin”, section “classpath”, and add the JAR there. And, if you want to have these JARs accessible from other plugins, add the corresponding packages to section “exported packages”. What does not work. If […]