Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins
[RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #200859] Tue, 24 February 2004 09:30 Go to next message
Eclipse UserFriend
Originally posted by: IanPLang.yahoo.com

I created the directory structure and workspace as directed by the help
documentation. I have chosen the application on the "Arguments" tab of
the launch configuration. I had to tweak the install.ini file to point to
my application. When I try and start up I get an error "Could not launch
the configuration. Details in the log. Would you like to open it?" and
this in the log:

!SESSION
------------------------------------------------------------ ----------
!ENTRY org.eclipse.core.launcher 4 0 Feb 24, 2004 06:27:59.875
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.RuntimeException: Could not find framework
at org.eclipse.core.launcher.Main.getBootPath(Main.java:437)
at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)

Is RCP supposed to work with the "Use features in workspace" choice? Any
idea what this means?
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #200907 is a reply to message #200859] Tue, 24 February 2004 11:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manahan.NOSPAM.ca.ibm.com

Ian Lang wrote:
> I created the directory structure and workspace as directed by the help
> documentation. I have chosen the application on the "Arguments" tab of
> the launch configuration. I had to tweak the install.ini file to point to
> my application. When I try and start up I get an error "Could not launch
> the configuration. Details in the log. Would you like to open it?" and
> this in the log:
>
> !SESSION
> ------------------------------------------------------------ ----------
> !ENTRY org.eclipse.core.launcher 4 0 Feb 24, 2004 06:27:59.875
> !MESSAGE Exception launching the Eclipse Platform:
> !STACK
> java.lang.RuntimeException: Could not find framework
> at org.eclipse.core.launcher.Main.getBootPath(Main.java:437)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
> at org.eclipse.core.launcher.Main.run(Main.java:742)
> at org.eclipse.core.launcher.Main.main(Main.java:581)
>
> Is RCP supposed to work with the "Use features in workspace" choice? Any
> idea what this means?
>
>
I use RCP with the use features in workspace choice. My setup is like
this. Am currently using M7 if that makes a difference

<toplevel>/features/
com.myfeature..... -- primary feature
<toplevel>/plugins/ -- workspace
/com.myplugin1....
/com.myplugin2..... --- feature plugin
<toplevel>/runtime-workspace/
<toplevel>/config/
<toplevel>/install.ini -- created for you
<toplevel>/.eclipseproduct -- created for you

Create the workspace
-data <toplevel>/plugins

Have a launch config which sets the runtime workspaces
<toplevel>/runtime-workspace

And the config
-configuration file:file:///d:/<toplevel>/config


Peter
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #201451 is a reply to message #200907] Wed, 25 February 2004 09:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: IanPLang.yahoo.com

The only thing I did not already have was the -configuration option. The
only problem with that is that no config folder gets created. I created
an empty one but did not help either. I tweaked .eclipseproduct and
install.ini to point to my app too but still no joy. I still get the same
log entries.

Any other advice? Could I be missing a dependency? With M6 I had this
RCP app running OK but I did not have access to my features which is why I
am trying to get the "Use features in the workspace" to work.

IL

Peter Manahan wrote:

> I use RCP with the use features in workspace choice. My setup is like
> this. Am currently using M7 if that makes a difference

> <toplevel>/features/
> com.myfeature..... -- primary feature
> <toplevel>/plugins/ -- workspace
> /com.myplugin1....
> /com.myplugin2..... --- feature plugin
> <toplevel>/runtime-workspace/
> <toplevel>/config/
> <toplevel>/install.ini -- created for you
> <toplevel>/.eclipseproduct -- created for you

> Create the workspace
> -data <toplevel>/plugins

> Have a launch config which sets the runtime workspaces
> <toplevel>/runtime-workspace

> And the config
> -configuration file:file:///d:/<toplevel>/config


> Peter
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #201458 is a reply to message #201451] Wed, 25 February 2004 09:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: IanPLang.yahoo.com

I added a dependency on org.eclipse.platform since that is where the code
in the exception is found. I read the code in it seems to be looking for
the root directory. I cannot think of what is not right there though.

IL

Ian Lang wrote:
<snip>
> Any other advice? Could I be missing a dependency? With M6 I had this
> RCP app running OK but I did not have access to my features which is why I
> am trying to get the "Use features in the workspace" to work.
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #201465 is a reply to message #201451] Wed, 25 February 2004 10:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manahan.NOSPAM.ca.ibm.com

Do your features contain all the required plugins? For example I
currently only have one feature. It contains the plugins for my
application as well as the all the required rcp plugins.

Peter
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #201471 is a reply to message #201458] Wed, 25 February 2004 10:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manahan.NOSPAM.ca.ibm.com

How it should work and I someone correct me if I am wrong is that when
launching using features based in the workspace the features give the
platform a list of plugins. If a required plugin isn't in that list of
features then you'll get errors. Since currently there isn't a feature
for just the rich client platform you have create one for those plugins
that make up the core RCP.

Peter

Ian Lang wrote:

> I added a dependency on org.eclipse.platform since that is where the code
> in the exception is found. I read the code in it seems to be looking for
> the root directory. I cannot think of what is not right there though.
>
> IL
>
> Ian Lang wrote:
> <snip>
>
>>Any other advice? Could I be missing a dependency? With M6 I had this
>>RCP app running OK but I did not have access to my features which is why I
>>am trying to get the "Use features in the workspace" to work.
>
>
>
>
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #201899 is a reply to message #201458] Wed, 25 February 2004 17:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anikov.panton.com.mk

Difference between M6 and M7 is that now you need a dependency on
org.eclipse.osg and org.osg.

> I added a dependency on org.eclipse.platform since that is where the code
> in the exception is found. I read the code in it seems to be looking for
> the root directory. I cannot think of what is not right there though.
>
> <snip>
>
>>Any other advice? Could I be missing a dependency? With M6 I had this
>>RCP app running OK but I did not have access to my features which is why I
>>am trying to get the "Use features in the workspace" to work.
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #202037 is a reply to message #201465] Wed, 25 February 2004 21:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: IanPLang.yahoo.com

No, my two features only include references to my plug-ins. I'll try your
idea and create one for RCP - which I had intended to do any way for the
my about box.

PS. do you know what kind of changes are coming wrt branding and RCP?

Peter Manahan wrote:

> Do your features contain all the required plugins? For example I
> currently only have one feature. It contains the plugins for my
> application as well as the all the required rcp plugins.

> Peter
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #202341 is a reply to message #201471] Thu, 26 February 2004 09:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: IanPLang.yahoo.com

I have two plug-ins and two features. The features include my plug-ins
and have dependencies on the Eclipse plug-ins they need. Of course I
could be missing something so I'll check. Is that what you are talking
about? Or did you create a feature that "packages" the Eclipse plug-ins?

IL

Peter Manahan wrote:

> How it should work and I someone correct me if I am wrong is that when
> launching using features based in the workspace the features give the
> platform a list of plugins. If a required plugin isn't in that list of
> features then you'll get errors. Since currently there isn't a feature
> for just the rich client platform you have create one for those plugins
> that make up the core RCP.

> Peter

> Ian Lang wrote:

> > I added a dependency on org.eclipse.platform since that is where the code
> > in the exception is found. I read the code in it seems to be looking for
> > the root directory. I cannot think of what is not right there though.
> >
> > IL
> >
> > Ian Lang wrote:
> > <snip>
> >
> >>Any other advice? Could I be missing a dependency? With M6 I had this
> >>RCP app running OK but I did not have access to my features which is why I
> >>am trying to get the "Use features in the workspace" to work.
> >
> >
> >
> >
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #202347 is a reply to message #201899] Thu, 26 February 2004 09:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: IanPLang.yahoo.com

Thanks for the tip but I cannot find either of these plug-ins in the list
when I try to add required plug-ins to my plug-ins.

IL

Aleksandar Nikov wrote:

> Difference between M6 and M7 is that now you need a dependency on
> org.eclipse.osg and org.osg.

> > I added a dependency on org.eclipse.platform since that is where the code
> > in the exception is found. I read the code in it seems to be looking for
> > the root directory. I cannot think of what is not right there though.
> >
> > <snip>
> >
> >>Any other advice? Could I be missing a dependency? With M6 I had this
> >>RCP app running OK but I did not have access to my features which is why I
> >>am trying to get the "Use features in the workspace" to work.
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #202402 is a reply to message #202341] Thu, 26 February 2004 11:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manahan.NOSPAM.ca.ibm.com

Created a feature that packages the eclipse plugins.

Peter

Ian Lang wrote:
> I have two plug-ins and two features. The features include my plug-ins
> and have dependencies on the Eclipse plug-ins they need. Of course I
> could be missing something so I'll check. Is that what you are talking
> about? Or did you create a feature that "packages" the Eclipse plug-ins?
>
> IL
>
> Peter Manahan wrote:
>
>
>>How it should work and I someone correct me if I am wrong is that when
>>launching using features based in the workspace the features give the
>>platform a list of plugins. If a required plugin isn't in that list of
>>features then you'll get errors. Since currently there isn't a feature
>>for just the rich client platform you have create one for those plugins
>>that make up the core RCP.
>
>
>>Peter
>
>
>>Ian Lang wrote:
>
>
>>>I added a dependency on org.eclipse.platform since that is where the code
>>>in the exception is found. I read the code in it seems to be looking for
>>>the root directory. I cannot think of what is not right there though.
>>>
>>>IL
>>>
>>>Ian Lang wrote:
>>><snip>
>>>
>>>>Any other advice? Could I be missing a dependency? With M6 I had this
>>>>RCP app running OK but I did not have access to my features which is why I
>>>>am trying to get the "Use features in the workspace" to work.
>>>
>>>
>>>
>>>
>
>
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #202798 is a reply to message #202402] Fri, 27 February 2004 01:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: IanPLang.yahoo.com

Thanks for helping with this!

OK I tried to create a feature that packaged the eclipse plug-ins my app
depends on. When I tried to create it in the workspace I got warnings
about not being able to find the plug-in referenced by each of the
<plugin> elements. Running it that way resulted in the same error message.

So I added it to my M7 install and restarted. Now when I import feautres
I using the "Import External Features" wizard and choose "Choose from
features in the runtime workbench" I can pick my RCP feature and it gets
imported. Then I can get my app plug-in to depend on the matching plug-in
I also created and update its feature.

So, here is what I have now:
workspace\
features\
myapp-feature <-- my feature that packages myapp
org.eclipse.rcp-feature <-- I setup for packaging eclipse rcp
plug-ins
plugins\
.metadata\ <-- workspace\plugins\ is my workspace
myapp <-- my rcp application plug-in
runtime-workspace\ <-- run configuration's workspace
.metadata\
.eclipseproduct <-- points to my rcp app
install.ini <-- points to my rcp app

When I try and run I still get the same error:

!SESSION
------------------------------------------------------------ ----------
!ENTRY org.eclipse.core.launcher 4 0 Feb 26, 2004 22:32:39.546
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.RuntimeException: Could not find framework
at org.eclipse.core.launcher.Main.getBootPath(Main.java:437)
at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)


IL

Peter Manahan wrote:

> Created a feature that packages the eclipse plugins.

> Peter

> Ian Lang wrote:
> > I have two plug-ins and two features. The features include my plug-ins
> > and have dependencies on the Eclipse plug-ins they need. Of course I
> > could be missing something so I'll check. Is that what you are talking
> > about? Or did you create a feature that "packages" the Eclipse plug-ins?
> >
> > IL
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #202994 is a reply to message #202798] Fri, 27 February 2004 09:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: manahan.NOSPAM.ca.ibm.com

Do you have the rcp plugins imported into the workbench as binary
projects? I don't know that this is required but that is how I have it
set up and it seems to be working. I think its needed because it treats
the workspace as an eclipse install location which would mean all the
plugins need to be in the plugins directory. You can even test linking
in other plugins via a links directory.

My plugins directory looks like this because of the binary projects.

my.plugins
org.apache.ant
org.apache.lucene
org.apache.xerces
org.eclipse.core.resources
org.eclipse.core.runtime
org.eclipse.core.runtime.compatibility
org.eclipse.help
org.eclipse.help.appserver
org.eclipse.help.base
org.eclipse.help.examples.ex1
org.eclipse.help.ui
org.eclipse.help.webapp
org.eclipse.jface
org.eclipse.osgi
org.eclipse.osgi.services
org.eclipse.osgi.util
org.eclipse.platform.source
org.eclipse.platform.source.win32.win32.x86
org.eclipse.swt
org.eclipse.swt.win32
org.eclipse.tomcat
org.eclipse.ui
org.eclipse.ui.ide
org.eclipse.ui.views
org.eclipse.ui.workbench
org.eclipse.ui.workbench.compatibility
org.eclipse.update.configurator
org.eclipse.update.core
org.eclipse.update.core.win32


Peter

Ian Lang wrote:
> Thanks for helping with this!
>
> OK I tried to create a feature that packaged the eclipse plug-ins my app
> depends on. When I tried to create it in the workspace I got warnings
> about not being able to find the plug-in referenced by each of the
> <plugin> elements. Running it that way resulted in the same error message.
>
> So I added it to my M7 install and restarted. Now when I import feautres
> I using the "Import External Features" wizard and choose "Choose from
> features in the runtime workbench" I can pick my RCP feature and it gets
> imported. Then I can get my app plug-in to depend on the matching plug-in
> I also created and update its feature.
>
> So, here is what I have now:
> workspace\
> features\
> myapp-feature <-- my feature that packages myapp
> org.eclipse.rcp-feature <-- I setup for packaging eclipse rcp
> plug-ins
> plugins\
> .metadata\ <-- workspace\plugins\ is my workspace
> myapp <-- my rcp application plug-in
> runtime-workspace\ <-- run configuration's workspace
> .metadata\
> .eclipseproduct <-- points to my rcp app
> install.ini <-- points to my rcp app
>
> When I try and run I still get the same error:
>
> !SESSION
> ------------------------------------------------------------ ----------
> !ENTRY org.eclipse.core.launcher 4 0 Feb 26, 2004 22:32:39.546
> !MESSAGE Exception launching the Eclipse Platform:
> !STACK
> java.lang.RuntimeException: Could not find framework
> at org.eclipse.core.launcher.Main.getBootPath(Main.java:437)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
> at org.eclipse.core.launcher.Main.run(Main.java:742)
> at org.eclipse.core.launcher.Main.main(Main.java:581)
>
>
> IL
>
> Peter Manahan wrote:
>
>
>>Created a feature that packages the eclipse plugins.
>
>
>>Peter
>
>
>>Ian Lang wrote:
>>
>>>I have two plug-ins and two features. The features include my plug-ins
>>>and have dependencies on the Eclipse plug-ins they need. Of course I
>>>could be missing something so I'll check. Is that what you are talking
>>>about? Or did you create a feature that "packages" the Eclipse plug-ins?
>>>
>>>IL
>
>
>
Re: [RCP] Trouble launching using "Use features in workspace" choice for Plug-ins [message #203513 is a reply to message #202994] Sat, 28 February 2004 15:46 Go to previous message
Eclipse UserFriend
Originally posted by: IanPLang.yahoo.com

Peter,

Thanks for all your help! The import as "Binary projects with linked
content" did not work. I got an error about a missing file - it is
already logged as 53351. But when I reimported using the "Binary
projects" choice everything was fine and my RCP app ran.

However the goal of using this setup was so that my features would be
available during debugging but they do not seem to be. I'll start a new
question about that since this was focused on things not running.

To recap here is what I had to do:
- Create a directory structure like this
workspace\
features\
myapp-feature <-- my feature that packages myapp
org.eclipse.rcp-feature <-- I setup for packaging eclipse rcp
plugins\
.metadata\ <-- workspace\plugins\ is my workspace
myapp <-- my rcp application plug-in
runtime-workspace\ <-- run configuration's workspace
.metadata\
.eclipseproduct <-- points to my rcp app
install.ini <-- points to my rcp app

- Create a launch for my dev environment that uses a –data
workspace\plugins
- Use the Import External Features wizard to get myapp-feature and
org.eclipse.rcp-feature I created to take the place of
org.eclipse.platform into the workspace
- Use the Import External Plug-ins and Fragments wizard choosing the
Import As "Binary project"
Previous Topic:BUG? FormEditor addPage AssertionFailedException
Next Topic:support objectcontribution for IType static constraint by project nature?
Goto Forum:
  


Current Time: Sun Jun 22 10:23:52 EDT 2025

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

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

Back to the top