Hi to all i see this error:
1. i use Eclipse 3.4.1 and jdk ver. 6 upd. 7
2. i use swt version 3.4
3. i run this easy example:
package rich2;
import java.io.File;
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import de.spiritlink.richhtml4eclipse.widgets.HtmlComposer;
/**
* This class controls all aspects of the application's execution
*/
public class Application implements IApplication {
/* (non-Javadoc)
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
*/
public Object start(IApplicationContext context) throws Exception {
//System.out.println("Hello RCP World!");
Display display = new Display();
final Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
String url = new File(HtmlComposer.BASE_PATH).getAbsolutePath();
final HtmlComposer browser = new HtmlComposer(shell, SWT.BORDER,url);
browser.setFocus();
shell.open ();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
return IApplication.EXIT_OK;
}
/* (non-Javadoc)
* @see org.eclipse.equinox.app.IApplication#stop()
*/
public void stop() {
// nothing to do
}
}
4. When i run i see this error:
VALIDATION
rich2
Missing Constrain:
Require-Bundle:de.spiritlink.richhtml4eclipse;
bundle-version="1.0.0"
Best Regads
Antonio
It seems to me that you are running this snippet as an osgi application. If you're using an osgi container, you have to set a dependency in your MANIFEST.MF file to the bundle de.spiritlink.richhtml4eclipse
Hi all,
i insert de.spiritlink.richhtml4eclipse(1.0.0) in dependices in plugin.xml, but don't
resolve the problem :(
I think that the problem is in the richhtml4eclipse package because when i see the log i see this:
1232133816214.log
!SESSION 2009-01-16 20:23:34.852 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT-CONSOLELOG
Framework arguments: -application rich_h1.application
Command-line arguments: -application rich_h1.application -data E:\work/../runtime-rich_h1.application -dev file:E:/work/.metadata/.plugins/org.eclipse.pde.core/rich_h1.application/dev.properties -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.osgi 4 0 2009-01-16 20:23:38.067
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "rich_h1.application" could not be found in the registry. The applications available are: org.eclipse.equinox.app.error.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
!ENTRY org.eclipse.osgi 2 0 2009-01-16 20:23:38.097
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-01-16 20:23:38.097
!MESSAGE Bundle initial@reference:file:plugins/de.spiritlink.richhtml4eclipse_1.0.0/ was not resolved.
!SUBENTRY 2 de.spiritlink.richhtml4eclipse 2 0 2009-01-16 20:23:38.097
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!ENTRY org.eclipse.osgi 2 0 2009-01-16 20:23:38.097
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-01-16 20:23:38.097
!MESSAGE Bundle initial@reference:file:plugins/de.spiritlink.richhtml4eclipse_1.0.0/ [13] was not resolved.
!SUBENTRY 2 de.spiritlink.richhtml4eclipse 2 0 2009-01-16 20:23:38.097
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-01-16 20:23:38.097
!MESSAGE Bundle initial@reference:file:../../work/rich_h1/ [16] was not resolved.
!SUBENTRY 2 rich_h1 2 0 2009-01-16 20:23:38.097
!MESSAGE Missing required bundle de.spiritlink.richhtml4eclipse_1.0.0.
where can you see eclipse.buildId=unknown, it's create the problem
Best Regads
Antonio