Skip to main content



      Home
Home » Newcomers » Newcomers » NoClassDefFoundError with JFace (?)
NoClassDefFoundError with JFace (?) [message #251518] Thu, 13 March 2008 13:25 Go to next message
Eclipse UserFriend
Originally posted by: eclipse-newsgroup.christian.weiss2.de

Hi there,

might be a stupid question, but I didn't find an answer myself searching
with google (or I just used the wrong keywords ...).

I just started with SWT and try to follow examples from a book (code
downloaded so it's supposed to work).

I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/core/runtime/IPath
at org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:151)
at org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:123)
at BasicEditor.<init>(BasicEditor.java:293)
at BasicEditor.main(BasicEditor.java:418)

When I comment out the ImageRegistry it works.

I included almost every .jar I could find in my eclipse folder (see
bellow) (I'm using EasyEclipse Desktop Java 1.3.1.1 based on eclipse
M20071023-1652), but the class still can't be found.

org.eclipse.core.resources_3.3 ...
org.eclipse.core.resources.win32_3.3 ...
org.eclipse.core.runtime.compatibility_3.1 ...
org.eclipse.jface_3.3 ...
org.eclipse.swt_3.3 ...
org.eclipse.swt.win32.win32.x86_3.3 ...

So where is it hiding? Or what else am I doing wrong?

I'd appreciate any help on this.
Re: NoClassDefFoundError with JFace (?) [message #251523 is a reply to message #251518] Thu, 13 March 2008 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Christian Weiss wrote:
> Hi there,
>
> might be a stupid question, but I didn't find an answer myself searching
> with google (or I just used the wrong keywords ...).
>
> I just started with SWT and try to follow examples from a book (code
> downloaded so it's supposed to work).
>
> I get this error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/core/runtime/IPath
> at
> org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:151)
> at
> org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:123)
> at BasicEditor.<init>(BasicEditor.java:293)
> at BasicEditor.main(BasicEditor.java:418)
>
> When I comment out the ImageRegistry it works.
>
> I included almost every .jar I could find in my eclipse folder (see
> bellow) (I'm using EasyEclipse Desktop Java 1.3.1.1 based on eclipse
> M20071023-1652), but the class still can't be found.
>
> org.eclipse.core.resources_3.3 ...
> org.eclipse.core.resources.win32_3.3 ...
> org.eclipse.core.runtime.compatibility_3.1 ...
> org.eclipse.jface_3.3 ...
> org.eclipse.swt_3.3 ...
> org.eclipse.swt.win32.win32.x86_3.3 ...
>
> So where is it hiding? Or what else am I doing wrong?
>
> I'd appreciate any help on this.
>
Hi. I have the following JAR's on my Build Path for my JFace project
(all starting with org.eclipse and ending with _<version>): jface,
jface.text, text, core.commands, and equinox.common. From playing around
with this, I think these are the minimum you need. Let me know if that
works for you. Thanks. Mark
Re: NoClassDefFoundError with JFace (?) [message #251526 is a reply to message #251518] Thu, 13 March 2008 13:44 Go to previous message
Eclipse UserFriend
Christian Weiss wrote:
> Hi there,
>
> might be a stupid question, but I didn't find an answer myself searching
> with google (or I just used the wrong keywords ...).
>
> I just started with SWT and try to follow examples from a book (code
> downloaded so it's supposed to work).
>
> I get this error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/core/runtime/IPath
> at
> org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:151)
> at
> org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:123)
> at BasicEditor.<init>(BasicEditor.java:293)
> at BasicEditor.main(BasicEditor.java:418)
>
> When I comment out the ImageRegistry it works.
>
> I included almost every .jar I could find in my eclipse folder (see
> bellow) (I'm using EasyEclipse Desktop Java 1.3.1.1 based on eclipse
> M20071023-1652), but the class still can't be found.
>
> org.eclipse.core.resources_3.3 ...
> org.eclipse.core.resources.win32_3.3 ...
> org.eclipse.core.runtime.compatibility_3.1 ...
> org.eclipse.jface_3.3 ...
> org.eclipse.swt_3.3 ...
> org.eclipse.swt.win32.win32.x86_3.3 ...
>
> So where is it hiding? Or what else am I doing wrong?
>
> I'd appreciate any help on this.
>
Hi. I should add that my Jface project references the org.eclipse.swt
project that in turn references SWT.JAR. Mark
Previous Topic:plugins or fragments arent found by rcp app
Next Topic:Javascript debugger
Goto Forum:
  


Current Time: Sat May 10 15:56:09 EDT 2025

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

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

Back to the top