Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » RCP can not say hello world
RCP can not say hello world [message #516202] Tue, 23 February 2010 08:14 Go to next message
Jinshan  is currently offline Jinshan Friend
Messages: 24
Registered: December 2009
Junior Member
I used the RCP Wizard to create a HelloWorld RCP Application.
But When I run it as a eclipse application, the eclipse say:

!SESSION Tue Feb 23 15:55:25 CST 2010 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2010-02-23 15:55:25.100
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 608)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
at org.eclipse.equinox.launcher.Main.main(Main.java:1339)


The eclipse version is eclipse-e4-SDK-incubation-I20100218-2100-win32

[Updated on: Tue, 23 February 2010 08:15]

Report message to a moderator

Re: RCP can not say hello world [message #516289 is a reply to message #516202] Tue, 23 February 2010 14:14 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

With what build? you might have to go to your launch config and add all
required plugins.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: RCP can not say hello world [message #516308 is a reply to message #516202] Tue, 23 February 2010 15:10 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Try the manual way and see if it works:
http://www.vogella.de/articles/EclipseE4/article.html

Cheers, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter


On 23.02.2010 00:14, Jinshan wrote:
> I used the RCP Wizard to create a HelloWorld RCP Application.
> But When I run it as a eclipse application, the eclipse say:
>
> !SESSION Tue Feb 23 15:55:25 CST 2010
> ------------------------------------------
> !ENTRY org.eclipse.equinox.launcher 4 0 2010-02-23 15:55:25.100
> !MESSAGE Exception launching the Eclipse Platform:
> !STACK
> java.lang.ClassNotFoundException:
> org.eclipse.core.runtime.adaptor.EclipseStarter
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 608)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1339)
>
>
Re: RCP can not say hello world [message #516464 is a reply to message #516202] Wed, 24 February 2010 06:03 Go to previous messageGo to next message
Jinshan  is currently offline Jinshan Friend
Messages: 24
Registered: December 2009
Junior Member
The build is eclipse-e4-SDK-incubation-I20100218-2100-win32.


If I have to add all required plugins by mysely, I think the wizard shoud be update.


Re: RCP can not say hello world [message #516470 is a reply to message #516308] Wed, 24 February 2010 07:09 Go to previous messageGo to next message
Jinshan  is currently offline Jinshan Friend
Messages: 24
Registered: December 2009
Junior Member
I use the build eclipse-e4-SDK-incubation-I20100218-2100-win32 and following the article, the ClassNotFoundException still rise.


Lars Vogel wrote on Tue, 23 February 2010 10:10
Try the manual way and see if it works:
http://www.vogella.de/articles/EclipseE4/article.html

Cheers, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter


On 23.02.2010 00:14, Jinshan wrote:
> I used the RCP Wizard to create a HelloWorld RCP Application.
> But When I run it as a eclipse application, the eclipse say:
>
> !SESSION Tue Feb 23 15:55:25 CST 2010
> ------------------------------------------
> !ENTRY org.eclipse.equinox.launcher 4 0 2010-02-23 15:55:25.100
> !MESSAGE Exception launching the Eclipse Platform:
> !STACK
> java.lang.ClassNotFoundException:
> org.eclipse.core.runtime.adaptor.EclipseStarter
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 608)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1339)
>
>

Re: RCP can not say hello world [message #516763 is a reply to message #516470] Thu, 25 February 2010 02:13 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Did you check you launch configuration? Press "Validated .... " on the
plugin tab.


On 23.02.2010 23:09, Jinshan wrote:
> I use the build eclipse-e4-SDK-incubation-I20100218-2100-win32 and
> following the article, the ClassNotFoundException still rise.
>
>
> Lars Vogel wrote on Tue, 23 February 2010 10:10
>> Try the manual way and see if it works:
>> http://www.vogella.de/articles/EclipseE4/article.html
>>
>> Cheers, Lars
>>
>> --
>> http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
>> http://www.twitter.com/vogella - vogella on Twitter
>>
>>
>> On 23.02.2010 00:14, Jinshan wrote:
>> > I used the RCP Wizard to create a HelloWorld RCP Application.
>> > But When I run it as a eclipse application, the eclipse say:
>> >
>> > !SESSION Tue Feb 23 15:55:25 CST 2010
>> > ------------------------------------------
>> > !ENTRY org.eclipse.equinox.launcher 4 0 2010-02-23 15:55:25.100
>> > !MESSAGE Exception launching the Eclipse Platform:
>> > !STACK
>> > java.lang.ClassNotFoundException:
>> > org.eclipse.core.runtime.adaptor.EclipseStarter
>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> > at java.security.AccessController.doPrivileged(Native Method)
>> > at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> > at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 608)
>> > at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
>> > at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
>> > at org.eclipse.equinox.launcher.Main.main(Main.java:1339)
>> >
>> >
>
>
Re: RCP can not say hello world [message #520421 is a reply to message #516202] Fri, 12 March 2010 05:48 Go to previous messageGo to next message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
Here is a screencast to help you getting started:
http://wiki.eclipse.org/E4/E4Designer

yves
"Jinshan" <jinshanl@gmail.com> wrote in message
news:hm02po$l4r$1@build.eclipse.org...
>I used the RCP Wizard to create a HelloWorld RCP Application.
> But When I run it as a eclipse application, the eclipse say:
>
> !SESSION Tue Feb 23 15:55:25 CST
> 2010 ------------------------------------------
> !ENTRY org.eclipse.equinox.launcher 4 0 2010-02-23 15:55:25.100
> !MESSAGE Exception launching the Eclipse Platform:
> !STACK
> java.lang.ClassNotFoundException:
> org.eclipse.core.runtime.adaptor.EclipseStarter
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 608)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1339)
>
>
Re: RCP can not say hello world [message #569003 is a reply to message #516308] Wed, 24 February 2010 07:09 Go to previous messageGo to next message
Jinshan  is currently offline Jinshan Friend
Messages: 24
Registered: December 2009
Junior Member
I use the build eclipse-e4-SDK-incubation-I20100218-2100-win32 and following the article, the ClassNotFoundException still rise.


Lars Vogel wrote on Tue, 23 February 2010 10:10
> Try the manual way and see if it works:
> http://www.vogella.de/articles/EclipseE4/article.html
>
> Cheers, Lars
>
> --
> http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
> http://www.twitter.com/vogella - vogella on Twitter
>
>
> On 23.02.2010 00:14, Jinshan wrote:
> > I used the RCP Wizard to create a HelloWorld RCP Application.
> > But When I run it as a eclipse application, the eclipse say:
> >
> > !SESSION Tue Feb 23 15:55:25 CST 2010
> > ------------------------------------------
> > !ENTRY org.eclipse.equinox.launcher 4 0 2010-02-23 15:55:25.100
> > !MESSAGE Exception launching the Eclipse Platform:
> > !STACK
> > java.lang.ClassNotFoundException:
> > org.eclipse.core.runtime.adaptor.EclipseStarter
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 608)
> > at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
> > at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
> > at org.eclipse.equinox.launcher.Main.main(Main.java:1339)
> >
> >
Re: RCP can not say hello world [message #569021 is a reply to message #569003] Thu, 25 February 2010 02:13 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Did you check you launch configuration? Press "Validated .... " on the
plugin tab.


On 23.02.2010 23:09, Jinshan wrote:
> I use the build eclipse-e4-SDK-incubation-I20100218-2100-win32 and
> following the article, the ClassNotFoundException still rise.
>
>
> Lars Vogel wrote on Tue, 23 February 2010 10:10
>> Try the manual way and see if it works:
>> http://www.vogella.de/articles/EclipseE4/article.html
>>
>> Cheers, Lars
>>
>> --
>> http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
>> http://www.twitter.com/vogella - vogella on Twitter
>>
>>
>> On 23.02.2010 00:14, Jinshan wrote:
>> > I used the RCP Wizard to create a HelloWorld RCP Application.
>> > But When I run it as a eclipse application, the eclipse say:
>> >
>> > !SESSION Tue Feb 23 15:55:25 CST 2010
>> > ------------------------------------------
>> > !ENTRY org.eclipse.equinox.launcher 4 0 2010-02-23 15:55:25.100
>> > !MESSAGE Exception launching the Eclipse Platform:
>> > !STACK
>> > java.lang.ClassNotFoundException:
>> > org.eclipse.core.runtime.adaptor.EclipseStarter
>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> > at java.security.AccessController.doPrivileged(Native Method)
>> > at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> > at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 608)
>> > at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
>> > at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
>> > at org.eclipse.equinox.launcher.Main.main(Main.java:1339)
>> >
>> >
>
>
Re: RCP can not say hello world [message #729125 is a reply to message #569021] Sun, 25 September 2011 06:11 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 124
Registered: November 2010
Senior Member
I am having the same problem...

I have tried to do Debug configuration > Plug-ins tab > Validate plug-ins

I have a lot of validations errors... Everything seems to be missing.

My Application
	Missing Constraint: Require-Bundle: javax.annotation;bundle-version="1.0.0"
	Missing Constraint: Require-Bundle: javax.inject;bundle-version="1.0.0"
	Missing Constraint: Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.0"
	Missing Constraint: Require-Bundle: org.eclipse.e4.core.contexts;bundle-version="0.10.0"
	Missing Constraint: Require-Bundle: org.eclipse.e4.core.di;bundle-version="0.10.0"
	Missing Constraint: Require-Bundle: org.eclipse.e4.ui.services;bundle-version="0.10.0"
	Missing Constraint: Require-Bundle: org.eclipse.e4.ui.css.swt.theme;bundle-version="0.9.1"
	Missing Constraint: Require-Bundle: org.eclipse.e4.core.services;bundle-version="0.10.0"
	Missing Constraint: Require-Bundle: org.eclipse.e4.ui.workbench;bundle-version="0.10.0"
	Missing Constraint: Require-Bundle: org.eclipse.e4.ui.workbench.renderers.swt;bundle-version="0.10.0"
	Missing Constraint: Require-Bundle: org.eclipse.e4.ui.workbench.swt;bundle-version="0.10.0"
	Missing Constraint: Require-Bundle: org.eclipse.equinox.ds;bundle-version="1.3.0"
	Missing Constraint: Require-Bundle: org.eclipse.equinox.event;bundle-version="1.2.100"
	Missing Constraint: Require-Bundle: org.eclipse.swt;bundle-version="3.7.0"
org.eclipse.e4.ui.worbench.swt is missing


I have tried with eclipse indigo 3.7 and eclipse-sdk-4.1 on a mac.

I probably missed something by the installation of e4... but what ?
Re: RCP can not say hello world [message #729142 is a reply to message #729125] Sun, 25 September 2011 07:34 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Well you are missing everything from Eclipse 4, when you are in 3.7
you'll have to set up a target-platform for the Eclipse 4 repos but when
running Eclipse 4 everything should be resolved.

Tom

Am 25.09.11 08:11, schrieb Jeremie Bresson:
> I am having the same problem...
>
> I have tried to do Debug configuration > Plug-ins tab > Validate plug-ins
>
> I have a lot of validations errors... Everything seems to be missing.
>
> My Application
> Missing Constraint: Require-Bundle:
> javax.annotation;bundle-version="1.0.0"
> Missing Constraint: Require-Bundle: javax.inject;bundle-version="1.0.0"
> Missing Constraint: Require-Bundle:
> org.eclipse.core.runtime;bundle-version="3.7.0"
> Missing Constraint: Require-Bundle:
> org.eclipse.e4.core.contexts;bundle-version="0.10.0"
> Missing Constraint: Require-Bundle:
> org.eclipse.e4.core.di;bundle-version="0.10.0"
> Missing Constraint: Require-Bundle:
> org.eclipse.e4.ui.services;bundle-version="0.10.0"
> Missing Constraint: Require-Bundle:
> org.eclipse.e4.ui.css.swt.theme;bundle-version="0.9.1"
> Missing Constraint: Require-Bundle:
> org.eclipse.e4.core.services;bundle-version="0.10.0"
> Missing Constraint: Require-Bundle:
> org.eclipse.e4.ui.workbench;bundle-version="0.10.0"
> Missing Constraint: Require-Bundle:
> org.eclipse.e4.ui.workbench.renderers.swt;bundle-version="0.10.0"
> Missing Constraint: Require-Bundle:
> org.eclipse.e4.ui.workbench.swt;bundle-version="0.10.0"
> Missing Constraint: Require-Bundle:
> org.eclipse.equinox.ds;bundle-version="1.3.0"
> Missing Constraint: Require-Bundle:
> org.eclipse.equinox.event;bundle-version="1.2.100"
> Missing Constraint: Require-Bundle:
> org.eclipse.swt;bundle-version="3.7.0"
> org.eclipse.e4.ui.worbench.swt is missing
>
> I have tried with eclipse indigo 3.7 and eclipse-sdk-4.1 on a mac.
>
> I probably missed something by the installation of e4... but what ?
>
Re: RCP can not say hello world [message #804251 is a reply to message #516202] Wed, 22 February 2012 11:24 Go to previous message
Martin Hoare is currently offline Martin HoareFriend
Messages: 1
Registered: February 2012
Junior Member
I had this problem when I was using Helios. I downloaded and installed Eclipse from Indigo and the problem went away.

Google for this: eclipse-rcp-indigo-SR1-win32.zip
Previous Topic:Bug in org.eclipse.e4.core.di?
Next Topic:How to use IResourcePool
Goto Forum:
  


Current Time: Fri Apr 19 22:29:31 GMT 2024

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

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

Back to the top