Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Product export problems
Product export problems [message #436121] Wed, 31 August 2005 11:00 Go to next message
Oliver Wahl is currently offline Oliver WahlFriend
Messages: 13
Registered: July 2009
Junior Member
I'm trying the new RCP export stuff from Eclipse 3.1.

The product works just fine when started from within Eclipse. It shows all settings from the product extension point correctly.

After export jar for e.g. org.eclipse.osgi_3.1.0 are missing (maybe because of build errors or vice versa?). Do I need to change build or classpath for the export?

During export I keep on getting the following errors:
<i># 31 Aug 2005 11:22:22
----------
1. ERROR in D:\workspace\factOrFiction\src\factOrFiction\Application.jav a
(at line 3)
import org.eclipse.core.runtime.IPlatformRunnable;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.core.runtime.IPlatformRunnable cannot be resolved
----------
2. ERROR in D:\workspace\factOrFiction\src\factOrFiction\Application.jav a
(at line 4)
import org.eclipse.swt.widgets.Display;
^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.swt.widgets cannot be resolved
----------
3. ERROR in D:\workspace\factOrFiction\src\factOrFiction\Application.jav a
(at line 5)
import org.eclipse.ui.PlatformUI;
^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.ui.PlatformUI cannot be resolved
----------
4. ERROR in D:\workspace\factOrFiction\src\factOrFiction\Application.jav a
(at line 10)
public class Application implements IPlatformRunnable {
^^^^^^^^^^^^^^^^^
IPlatformRunnable cannot be resolved to a type
----------
5. ERROR in D:\workspace\factOrFiction\src\factOrFiction\Application.jav a
(at line 16)
Display display = PlatformUI.createDisplay();
^^^^^^^
Display cannot be resolved to a type
----------
6. ERROR in D:\workspace\factOrFiction\src\factOrFiction\Application.jav a
(at line 16)
Display display = PlatformUI.createDisplay();
^^^^^^^^^^
PlatformUI cannot be resolved
----------
7. ERROR in D:\workspace\factOrFiction\src\factOrFiction\Application.jav a
(at line 18)
int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
^^^^^^^^^^
PlatformUI cannot be resolved
----------
8. ERROR in D:\workspace\factOrFiction\src\factOrFiction\Application.jav a
(at line 19)
if (returnCode == PlatformUI.RETURN_RESTART) {
^^^^^^^^^^
PlatformUI cannot be resolved
----------
9. ERROR in D:\workspace\factOrFiction\src\factOrFiction\Application.jav a
(at line 20)
return IPlatformRunnable.EXIT_RESTART;
^^^^^^^^^^^^^^^^^
IPlatformRunnable cannot be resolved
----------
10. ERROR in D:\workspace\factOrFiction\src\factOrFiction\Application.jav a
(at line 22)
return IPlatformRunnable.EXIT_OK;
^^^^^^^^^^^^^^^^^
IPlatformRunnable cannot be resolved
----------
----------
11. ERROR in D:\workspace\factOrFiction\src\factOrFiction\ApplicationActi onBarAdvisor.java
(at line 3)
import org.eclipse.jface.action.GroupMarker;
^^^^^^^^^^^^^^^^^
The import org.eclipse.jface cannot be resolved</i></i></i></i>
Re: Product export problems [message #436152 is a reply to message #436121] Wed, 31 August 2005 14:51 Go to previous messageGo to next message
Frank Gerhardt is currently offline Frank GerhardtFriend
Messages: 81
Registered: July 2009
Member
Oliver Wahl schrieb:
> I'm trying the new RCP export stuff from Eclipse 3.1.
>
> The product works just fine when started from within Eclipse. It
> shows all settings from the product extension point correctly.
>
> After export jar for e.g. org.eclipse.osgi_3.1.0 are missing (maybe
> because of build errors or vice versa?). Do I need to change build or
> classpath for the export?
>
> During export I keep on getting the following errors: <i># 31 Aug
> 2005 11:22:22 ---------- 1. ERROR in
> D:\workspace\factOrFiction\src\factOrFiction\Application.jav a (at
> line 3) import org.eclipse.core.runtime.IPlatformRunnable;
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The import
> org.eclipse.core.runtime.IPlatformRunnable cannot be resolved

I've seen this as well and can't explain why it happens. After some
fiddling around I discovered that in my case this problem occured only
when I had imported plug-ins from the installation into the workspace.
Try closing all org.eclipse.* projects and the like if you have such in
your workspace.

Frank.
Re: Product export problems [message #436153 is a reply to message #436152] Wed, 31 August 2005 16:16 Go to previous messageGo to next message
Ricky is currently offline RickyFriend
Messages: 204
Registered: July 2009
Senior Member
>> During export I keep on getting the following errors: <i># 31 Aug
>> 2005 11:22:22 ---------- 1. ERROR in
>> D:\workspace\factOrFiction\src\factOrFiction\Application.jav a (at
>> line 3) import org.eclipse.core.runtime.IPlatformRunnable;
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The import
>> org.eclipse.core.runtime.IPlatformRunnable cannot be resolved
>
> I've seen this as well and can't explain why it happens. After some
> fiddling around I discovered that in my case this problem occured only
> when I had imported plug-ins from the installation into the workspace.
> Try closing all org.eclipse.* projects and the like if you have such in
> your workspace.

It seems to be related to plugins imported as binary projects with linked
content. I got the same error and after recreating all eclipse plugins as
binary only projects exports work again although all projects are open.

Its interesting, exporting rcp applications causes a lot of trouble and
many people have difficulties with it (according to the frequent posts in
the newsgroups).

Ricky
Re: Product export problems [message #436161 is a reply to message #436153] Wed, 31 August 2005 21:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bermudez.mbari.org

Ricky wrote:
>>> During export I keep on getting the following errors: <i># 31 Aug
>>> 2005 11:22:22 ---------- 1. ERROR in
>>> D:\workspace\factOrFiction\src\factOrFiction\Application.jav a (at
>>> line 3) import org.eclipse.core.runtime.IPlatformRunnable;
>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The import
>>> org.eclipse.core.runtime.IPlatformRunnable cannot be resolved
>>
>>
>> I've seen this as well and can't explain why it happens. After some
>> fiddling around I discovered that in my case this problem occured only
>> when I had imported plug-ins from the installation into the workspace.
>> Try closing all org.eclipse.* projects and the like if you have such in
>> your workspace.
>
>
> It seems to be related to plugins imported as binary projects with
> linked content. I got the same error and after recreating all eclipse
> plugins as binary only projects exports work again although all
> projects are open.
>
> Its interesting, exporting rcp applications causes a lot of trouble and
> many people have difficulties with it (according to the frequent posts
> in the newsgroups).
>
> Ricky

This worked for me:

If you have external jars put them in another plugin (which contains
only the jars) and then you create that plugin as a dependent plugin.
This solved me problems when exporting an RCP Application.

Luis
Re: Product export problems [message #436230 is a reply to message #436153] Fri, 02 September 2005 09:19 Go to previous message
Oliver Wahl is currently offline Oliver WahlFriend
Messages: 13
Registered: July 2009
Junior Member
Thanks guys. That was the problem. Now the workspace only contains my own projects (non included binary projects anymoe) and export works like a charm.

Oliver
Previous Topic:PlatformUI.getWorkbench().getHelpSystem().setHelp() in a dialog
Next Topic:Need help with search in Help
Goto Forum:
  


Current Time: Sat Dec 07 22:20:39 GMT 2024

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

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

Back to the top