Eclipse plugin: java.lang.NoClassDefFoundError -


as can see:

enter image description here

i added jni4net.j-0.8.6.0.jar referenced libraries stell receive java.lang.noclassdeffounderror exception:

java.lang.noclassdeffounderror: net/sf/jni4net/bridge     @ sibeclipseplugin.debug.debuggerinterface.initialize(debuggerinterface.java:15)     @ sibeclipseplugin.debug.sibdebugtarget.<init>(sibdebugtarget.java:65)     @ sibeclipseplugin.ui.launch.launchconfigurationdelegate.launch(launchconfigurationdelegate.java:30)     @ org.eclipse.debug.internal.core.launchconfiguration.launch(launchconfiguration.java:858)     @ org.eclipse.debug.internal.core.launchconfiguration.launch(launchconfiguration.java:707)     @ org.eclipse.debug.internal.ui.debuguiplugin.buildandlaunch(debuguiplugin.java:1018)     @ org.eclipse.debug.internal.ui.debuguiplugin$8.run(debuguiplugin.java:1222)     @ org.eclipse.core.internal.jobs.worker.run(worker.java:53) caused by: java.lang.classnotfoundexception: net.sf.jni4net.bridge cannot found sibeclipseplugin_0.0.0.1     @ org.eclipse.osgi.internal.loader.bundleloader.findclassinternal(bundleloader.java:501)     @ org.eclipse.osgi.internal.loader.bundleloader.findclass(bundleloader.java:421)     @ org.eclipse.osgi.internal.loader.bundleloader.findclass(bundleloader.java:412)     @ org.eclipse.osgi.internal.baseadaptor.defaultclassloader.loadclass(defaultclassloader.java:107)     @ java.lang.classloader.loadclass(unknown source)     ... 8 more 

i have no idea problem is. when start project eclipse-application can't find class. running same code in normal java-project works.

does know how fix this?

you need add jar files in build.properties bin.includes entry. also, in manifest.mf file, need added in runtime->classpath list (corresponds bundle-classpath entry in manifest.mf).

edit: if put them in referenced libraries, osgi system not aware of fact.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -