Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » NoSuchMethodError - Display#setAppVersion on a vanilla RCP
NoSuchMethodError - Display#setAppVersion on a vanilla RCP [message #645678] Sun, 19 December 2010 19:25 Go to next message
Aashish Patil is currently offline Aashish PatilFriend
Messages: 3
Registered: July 2009
Junior Member
Note: Please ignore - problem solved (see reply for solution)

Environment:

Fresh Eclipse 3.6.1 IDE RCP + RAP
OSX - Snow Leopard with Java 1.6.0_22
Deleted my old Eclipse directory and then installed this one pointing to old workspace.

No additional plugins installed

Created a vanilla RCP application template (With a view)
Did not add any code to the created project
Should work and show me a sample view

Instead when I click on "Launch Eclipse Application" from plugin.xml, I get the mentioned error error (full stack trace pasted at the end).

Tried deleting the project and different RCP templates. No luck- same result.

My older RCP project that used to work just fine in the previous version is also now broken and shows the same error.

Stack Trace:
!SESSION 2010-12-19 11:12:13.359 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product com.aashishpatil.notesnmore.product
Command-line arguments: -product com.aashishpatil.notesnmore.product -data /Users/aashishpatil/Documents/workspace/../runtime-notesnmor e.product -dev file:/Users/aashishpatil/Documents/workspace/.metadata/.plug ins/org.eclipse.pde.core/notesnmore.product/dev.properties -os macosx -ws cocoa -arch x86

!ENTRY org.eclipse.osgi 4 0 2010-12-19 11:12:14.914
!MESSAGE Application error
!STACK 1
java.lang.NoSuchMethodError: org.eclipse.swt.widgets.Display.setAppVersion(Ljava/lang/Str ing;)V
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.ja va:692)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at com.aashishpatil.notesnmore.NotesNMoreApp.start(NotesNMoreAp p.java:88)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
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(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

[Updated on: Sun, 19 December 2010 19:52]

Report message to a moderator

Re: NoSuchMethodError - Display#setAppVersion on a vanilla RCP [message #645682 is a reply to message #645678] Sun, 19 December 2010 19:51 Go to previous message
Aashish Patil is currently offline Aashish PatilFriend
Messages: 3
Registered: July 2009
Junior Member
Please ignore the above post

Problem solved.

I was still using an older RCP Delta pack. After upgrading to the 3.6.1 delta pack the error went away.

Thanks,
Aashish
Previous Topic:how to screen lock
Next Topic:Can I show a Hyperlink in a tooltip?
Goto Forum:
  


Current Time: Thu Dec 18 02:25:45 GMT 2014

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

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