java - Eclipse. ClassNotFoundException but I do know that class exists -


i added mylibrary.jar in project buildpath , try call static method mylibrary.jar myclass have exception:

caused by: java.lang.noclassdeffounderror: application/application     @ rcp.handlers.rungenerationhandler.execute(rungenerationhandler.java:29)     @ org.eclipse.ui.internal.handlers.handlerproxy.execute(handlerproxy.java:294)     @ org.eclipse.ui.internal.handlers.e4handlerproxy.execute(e4handlerproxy.java:90)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)     @ java.lang.reflect.method.invoke(unknown source)     @ org.eclipse.e4.core.internal.di.methodrequestor.execute(methodrequestor.java:55)     ... 38 more caused by: java.lang.classnotfoundexception: application.application cannot found rcp_1.0.0.qualifier     @ org.eclipse.osgi.internal.loader.bundleloader.findclassinternal(bundleloader.java:432)     @ org.eclipse.osgi.internal.loader.bundleloader.findclass(bundleloader.java:345)     @ org.eclipse.osgi.internal.loader.bundleloader.findclass(bundleloader.java:337)     @ org.eclipse.osgi.internal.loader.moduleclassloader.loadclass(moduleclassloader.java:160)     @ java.lang.classloader.loadclass(unknown source)     ... 46 more 

i'm sure class exists in library. try rebuild mylibrary.jar , add in project again problem still stays.
below code try call static method class:

import application.application; ...  if (generationstring != null){     application.main(generationstring); } 

application - class in mylibrary.jar

screenshot package tree

ldl = mylibrary

update
i'm such slowpoke=(
in rcp applications libraries attaching in manifest.mf
example:

bundle-classpath: .,/directory/mylibrary.jar

if library rcp-plugin have add in dependencies of plugin.xml in project. in library plugin.xml have export package class in.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -