Tag Archives: class

java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller

Questions: I am trying to generate Excel using Xssf API because its memory footprint is small. It is working fine in my local machine which is having jdk1.7. But when I try to run it on UNIX where java version is 1.6.0_75 it gives me the following error. java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller I… Read More »

Change CSS class properties with jQuery

Questions: Is there a way to change the properties of a CSS class, not the element properties, using jQuery? This is a practical example: I have a div with class red .red {background: red;} I want to change class red background property, not elements that have class red background assigned. If I do it with… Read More »

ClassLoader getResourceAsStream returns null

Questions: My project directory structure (in Eclipse): MyProject/ src/ –> “source directory” on Eclipse’s classpath/buildpath com.me.myapp Driver myconfig.txt In Driver, I have the following code: public class Driver { public static void main(String[] args) { InputStream is = ClassLoader.getSystemClassLoader.getResourceAsStream(“myconfig.txt”); if(is == null) System.out.println(“input stream is null”); else System.out.println(“input stream is NOT null :-)”); } }… Read More »

Eclipse – find all classes that extend interface

Questions: We have an interface that has a child interface. Ie: public interface GenCalculator extends Serializable {} public interface SpecialCalculator extends GenCalculator {} In Eclipse, how can you find all interface-s that extend in this case GenCalculator? If I right click, select “Open Type Hierarchy” in the GenCalculator interface, I only see classes that implement… Read More »

Eclipse: Exclude specific packages when autocompleting a class name

Questions: When auto-completing a class name in Eclipse, e.g. if you type: ListITab A pop-up menu appears offering you matching class names for completion (which you can select with the mouse or by using the arrow keys: In this example, I almost certainly want java.util.ListIterator and I almost never want com.sun.xml.internal.bind.v2.runtime.reflect.ListIterator (or anything else from… Read More »

Annoyance – How to disable Eclipse classpath entry warnings

Questions: I’ve searched the options but I can’t seem to find a way to disable these warnings. Warnings such as this: Classpath entry org.eclipse.jdt.junit.JUNIT_CONTAINER/4 will not be exported or published. Runtime ClassNotFoundExceptions may result. Simply serve no purpose to me on my project other than to clutter my “Problems” view. Answers: bug 190783 might be… Read More »

Plug-in com.android.ide.eclipse.adt was unable to load class android

Questions: I am new to android development My eclipse was working properly. But now when I start a new project it give an error Problem opening wizard The selected wizard could not be opened The Detailed error message is The selected wizard could not be started. Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectWizard. An… Read More »