Can not start my RCP application

89 views
Skip to first unread message

Bill

unread,
Jun 1, 2009, 9:41:29 PM6/1/09
to vogella
Hello,

I am following the tutorial "Eclipse RCP - Tutorial with Eclipse 3.4"
and at step - 3.2. Start your RCP application ig et a long list of
errors which I have no clue what is going on.

I am on the MAC os and by default Java 1.5 is installed but I
installed 1.6 but the default java is still 1.5 is that problem?


Here is the error:

!SESSION 2009-06-01 21:34:36.541
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_16
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Framework arguments: -product MySecondRCP.product
Command-line arguments: -product MySecondRCP.product -data /Users/
bkatsma/Documents/workspace/../runtime-MySecondRCP.product -dev file:/
Users/bkatsma/Documents/workspace/.metadata/.plugins/
org.eclipse.pde.core/MySecondRCP.product/dev.properties -os macosx -ws
carbon -arch x86

!ENTRY org.eclipse.equinox.app 0 0 2009-06-01 21:34:37.345
!MESSAGE Product MySecondRCP.product could not be found.

!ENTRY org.eclipse.osgi 2 0 2009-06-01 21:34:37.358
!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-06-01 21:34:37.358
!MESSAGE Bundle initial@reference:file:../../../Documents/workspace/
MySecondRCP/ [1] was not resolved.
!SUBENTRY 2 MySecondRCP 2 0 2009-06-01 21:34:37.358
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment:
JavaSE-1.6

!ENTRY org.eclipse.osgi 4 0 2009-06-01 21:34:37.362
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at
org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp
(EclipseAppContainer.java:236)
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
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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-06-01 21:34:37.369
!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-06-01 21:34:37.369
!MESSAGE Bundle initial@reference:file:../../../Documents/workspace/
MySecondRCP/ [1] was not resolved.
!SUBENTRY 2 MySecondRCP 2 0 2009-06-01 21:34:37.369
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment:
JavaSE-1.6

Lars Vogel

unread,
Jun 2, 2009, 3:56:34 AM6/2/09
to vog...@googlegroups.com
Hi,

did you check your runtime configuration as described here: http://www.vogella.de/articles/RichClientPlatform/article.html#runconfiguration_check ?

Best regards, Lars

2009/6/2 Bill <bka...@gmail.com>



--
Lars
http://www.vogella.de - Tutorial about Java, Eclipse and Web programming

Bill

unread,
Jun 2, 2009, 9:01:12 PM6/2/09
to vogella
HI lars,

Thanks for the reply and great tutorials.

I did not going further than where I got stuck until your
recommendation here. After reviewing this, everything looks good from
what I can see.

I did do some more research and got my system running Java 1.6 and all
now I am getting a new error that is troubling me.

Here is the short version, I will post the entire error at the end.

java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-
bit JVM

From what I have found it appears to be a problem with the intel 64bit
Macs not being able to run the 32 bit code. Everything that I found
on this was also quit old and hoped there was a resolution by now.

Do I have to run this with java 1.6 can I use 1.5?

Here seems to be bug that explains the issue. All though this bug
says it is resolved I do not know what that resolution is.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=216051

Error in its entirety

!SESSION 2009-06-01 22:29:24.767
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_07
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Framework arguments: -product MyFirstRCP.product
Command-line arguments: -product MyFirstRCP.product -data /Users/
bkatsma/Documents/workspace/../runtime-MyFirstRCP.product -dev file:/
Users/bkatsma/Documents/workspace/.metadata/.plugins/
org.eclipse.pde.core/MyFirstRCP.product/dev.properties -os macosx -ws
carbon -arch x86

!ENTRY org.eclipse.osgi 4 0 2009-06-01 22:29:25.652
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-
bit JVM
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:177)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:972)
at org.eclipse.swt.widgets.Display.create(Display.java:966)
at org.eclipse.swt.graphics.Device.<init>(Device.java:124)
at org.eclipse.swt.widgets.Display.<init>(Display.java:774)
at org.eclipse.swt.widgets.Display.<init>(Display.java:765)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:
527)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at myfirstrcp.Application.start(Application.java:18)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:193)
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
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)
!SESSION 2009-06-02 20:29:19.168
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_07
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Framework arguments: -product MyFirstRCP.product
Command-line arguments: -product MyFirstRCP.product -data /Users/
bkatsma/Documents/workspace/../runtime-MyFirstRCP.product -dev file:/
Users/bkatsma/Documents/workspace/.metadata/.plugins/
org.eclipse.pde.core/MyFirstRCP.product/dev.properties -os macosx -ws
carbon -arch x86 -consoleLog

!ENTRY org.eclipse.osgi 4 0 2009-06-02 20:29:20.080
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-
bit JVM
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:177)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:972)
at org.eclipse.swt.widgets.Display.create(Display.java:966)
at org.eclipse.swt.graphics.Device.<init>(Device.java:124)
at org.eclipse.swt.widgets.Display.<init>(Display.java:774)
at org.eclipse.swt.widgets.Display.<init>(Display.java:765)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:
527)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at myfirstrcp.Application.start(Application.java:18)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:193)
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
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)



On Jun 2, 3:56 am, Lars Vogel <lars.vo...@googlemail.com> wrote:
> Hi,
> did you check your runtime configuration as described here:http://www.vogella.de/articles/RichClientPlatform/article.html#runcon...
>  ?
>
> <http://www.vogella.de/articles/RichClientPlatform/article.html#runcon...>Best
> regards, Lars
>
> 2009/6/2 Bill <bkat...@gmail.com>
> Larshttp://www.vogella.de- Tutorial about Java, Eclipse and Web programming

Bill

unread,
Jun 2, 2009, 9:17:05 PM6/2/09
to vogella
Hi Lars,

I went back and re-installed eclipse and started over from the
beginning with yoututorial but this time I am using java 1.5 and
everything seems to work great.

Thanks again for all the great work you are doing here it makes it
possible for us new to Java and Eclipse RCP get started,

Bill


On Jun 2, 3:56 am, Lars Vogel <lars.vo...@googlemail.com> wrote:
> Hi,
> did you check your runtime configuration as described here:http://www.vogella.de/articles/RichClientPlatform/article.html#runcon...
>  ?
>
> <http://www.vogella.de/articles/RichClientPlatform/article.html#runcon...>Best
> regards, Lars
>
> 2009/6/2 Bill <bkat...@gmail.com>
> Larshttp://www.vogella.de- Tutorial about Java, Eclipse and Web programming

Lars Vogel

unread,
Jun 3, 2009, 1:41:10 AM6/3/09
to vog...@googlegroups.com
Hi Bill, 

I don't have a Mac, so I cannot answer this. I suggest you ask on the Eclipse Newsgroup for help.
Best regards, Lars

2009/6/3 Bill <bka...@gmail.com>



--
Lars
http://www.vogella.de - Tutorial about Java, Eclipse and Web programming
Reply all
Reply to author
Forward
0 new messages