Absolute beginner question about GEF1 example on wiki [message #103646] |
Wed, 05 November 2003 13:25 |
Eclipse User |
|
|
|
Originally posted by: kkotzev.daimlerchrysler.com
Hello!
I am using eclipse 2.0.2 and GEF 2.1.1. In order to learn how to build a
small MMI Editor i downloaded the examples from Wiki, imported the first
example as project etc. , changed some imports (package names, classnames,
because the api changed) and compiled it without errors. (I imported all
the needed external jars in my project too). Then as i wanted to run it as
work bench it required to import some other _projects_ from eclipse like
org.eclipse.core.boot, org.eclipse.core.runtime etc. After doing so i
still get a runtime error (it builds all projects without any) that i
can't get rid off:
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Widget
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:15 90)
at java.lang.Class.getConstructor0(Class.java:1762)
at java.lang.Class.newInstance0(Class.java:276)
at java.lang.Class.newInstance(Class.java:259)
at
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension(PluginDescriptor.java:136)
at
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension(PluginDescriptor.java:165)
at
org.eclipse.core.internal.plugins.ConfigurationElement.creat eExecutableExtension(ConfigurationElement.java:102)
at
org.eclipse.core.internal.runtime.InternalPlatform.loaderGet Runnable(InternalPlatform.java:461)
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:324)
at
org.eclipse.core.internal.boot.InternalBootLoader.getRunnabl e(InternalBootLoader.java:457)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:827)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432)
at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)
Exception in thread "main"
I checked all the project preferences, my classpath and my
java.library.path, tried to run with VM parameters -D and - cp with
diferent library/classpath assuming that it somehow didnt get the Widget
class that is in the org.eclipse.swt.widgets package that is in swt.jar
file (first is included as project, secodn as library). I also checked the
location of the swt-win32-xxxx.dll library....
If someone has/had/solved this problem, please post, thank you!
regards kalin
|
|
|
Re: Absolute beginner question about GEF1 example on wiki [message #103719 is a reply to message #103646] |
Wed, 05 November 2003 16:20 |
Eclipse User |
|
|
|
Originally posted by: kkotzev.daimlerchrysler.com
Kalin wrote:
> Hello!
> I am using eclipse 2.0.2 and GEF 2.1.1. In order to learn how to build a
....
the problem seems not to be in the source code or paths, but in the
eclipse installation itself, because i have done a very simple plugin
project now, following the tutorial step by step, all without errors and
at "run as workbench" point it shows the same problem....seems to me
allways when i try to start a second workbench and it needs this
swt.widgets.Widget
|
|
|
Powered by
FUDForum. Page generated in 0.03200 seconds