Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

SWT package error

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody,

I'm new (as a JAVA-programmer as well as a member of the community).

I try to create a simple SWT-Shell. I use Eclipse 3.0.1. When I start the Main-Class as a Java-Application (not as Java Bean) I get the following message:

java.lang.NoClassDefFoundError: C:\Programme\Java\eclipse\plugins\org/eclipse/swt/win32_3/0/1\ws\win32
Exception in thread "main"

I already set in the configuration (arguments, VM-arguments) a variable called "java.library.path" with the value
"C:\Programme\Java\eclipse\plugins\org.eclipse.swt.win32_3.0.1\ws\win32". Here the Application-builder can find the file "swt.jar".

If I try to compile with "javac" on Command-line I get as a first error the message "package org.eclipse.swt.widgets.Shell does not exist".

What's wrong?

Thanks in advance!

You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic