Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP product: start issues / missing classes or resources in org.eclipse.osgi
RCP product: start issues / missing classes or resources in org.eclipse.osgi [message #664510] Sun, 10 April 2011 14:19 Go to next message
AvH  is currently offline AvH Friend
Messages: 7
Registered: April 2010
Junior Member

I work on a product based on Eclipse RCP and I like it, as long as it stays in my workspace. However I really have serious troubles as soon as I try to export it as a product and run it like that.

First problem was an external library (jar) which I added to my plugin. To be more exact, I have a main plugin which depends on another plugin which includes a jar file. I learned about the differences between plugin dependencies and imported packages, found that buddy policies are a cool thing, and got everything working in my workspace. As soon as I export, the app won't start. Classes from the jar are not found. I have no idea why, because I really read and tried everything.

I ended up with merging the external jar directly into my plugin, which was possible since it was a jar which I wrote myself. Starting my app afterwards does not work either, it has some troubles finding other resources (see below for error message).

During my tries I found that with each start, the app creates a folder org.eclipse.osgi in the configuration folder. This folder remains empty all the times. I think this may be a hint about what's going wrong. Once I copied accidently this folder to my test machine which was not empty, and my app was working. It took me a day to notice that this was not because of my changes, but only because of the contents of the directory "org.eclipse.osgi". I looked inside and found some structure with jars and resources.

Putting this together, I think that eclipse unzips its plugins when starting and copies all resources in there. With my app something goes wrong, which is not written in the log or anywhere else, and so all I get is the missing class or resources error.

Please gimme a hint! I already checked read/write rights on the filesystem but this all seems ok. I have no idea and feel like I tried everything twice!


!SESSION 2011-04-10 15:59:35.840 -----------------------------------------------
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 4 0 2011-04-10 15:59:40.199
!MESSAGE Application error
at org.eclipse.jface.resource.URLImageDescriptor.getFilePath(UR
at org.eclipse.jface.resource.URLImageDescriptor.createImage(UR
at org.eclipse.jface.resource.ImageDescriptor.createImage(Image
at org.eclipse.jface.resource.ImageDescriptor.createImage(Image
at org.eclipse.ui.internal.Workbench.initializeImages(Workbench .java:1487)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.ja va:539)
at org.eclipse.ui.PlatformUI.createDisplay(
at my.little.Application.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
at java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework( 549)
at org.eclipse.equinox.launcher.Main.basicRun(
Re: RCP product: start issues / missing classes or resources in org.eclipse.osgi [solved] [message #664561 is a reply to message #664510] Mon, 11 April 2011 07:47 Go to previous message
AvH  is currently offline AvH Friend
Messages: 7
Registered: April 2010
Junior Member
Well, writing things to a message board sometimes helps.

The problem was finally found in the config.ini, where the configuration dir was specified as "readOnly"...

Since it seems crucial for any eclipse app to create files here, I do not understand the reason for this option. However I learned something how eclipse apps work Smile


[Updated on: Mon, 11 April 2011 07:47]

Report message to a moderator

Previous Topic:make update site( https protocol)
Next Topic:Perspective bar to the left of Coolbar
Goto Forum:

Current Time: Thu Jun 21 05:09:44 GMT 2018

Powered by FUDForum. Page generated in 0.02530 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top