Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JFace ApplicationWindow: Simple Problem
JFace ApplicationWindow: Simple Problem [message #439991] Tue, 20 July 2004 11:09 Go to next message
Vince O'Sullivan is currently offline Vince O'SullivanFriend
Messages: 25
Registered: July 2009
Junior Member
I've just written a trivial JFace Window example, taken from Lori Watson's
JFace Tutorial. It works fine.

On page 3 of the tutorial, it says that the Window base class can be
replaced by the ApplicationWindow base class and, for the trivial example
given, the results should be identical. However, I get the following error
instead:

An error dialog:

"Cannot find the main class. Program will exit."

Console message:

java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor
Exception in thread "main"

A thorough 'Googling' hasn't yielded me anything useful. Any ideas anyone?

(I'm running 3.0RC3 on Windows XP.)

Vince.
Re: JFace ApplicationWindow: Simple Problem [message #440002 is a reply to message #439991] Tue, 20 July 2004 13:08 Go to previous messageGo to next message
Vince O'Sullivan is currently offline Vince O'SullivanFriend
Messages: 25
Registered: July 2009
Junior Member
I cured the problem by Adding the external jars:
org.eclipse.core.runtime: runtime.jar
org.eclipse.osci: console.jar
org.eclipse.osci: core.jar
org.eclipse.osci: defaultAdapter.jar
org.eclipse.osci: eclipseAdapter.jar
org.eclipse.osci: osci.jar
org.eclipse.osci: resolver.jar

The code then worked. Subsequently, I've removed all the jars above and
the code still works.

Not sure what's going on.

Vince.

Vince wrote:

> I've just written a trivial JFace Window example, taken from Lori Watson's
> JFace Tutorial. It works fine.

> On page 3 of the tutorial, it says that the Window base class can be
> replaced by the ApplicationWindow base class and, for the trivial example
> given, the results should be identical. However, I get the following error
> instead:

> An error dialog:

> "Cannot find the main class. Program will exit."

> Console message:

> java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor
> Exception in thread "main"

> A thorough 'Googling' hasn't yielded me anything useful. Any ideas anyone?

> (I'm running 3.0RC3 on Windows XP.)

> Vince.
Re: JFace ApplicationWindow: Simple Problem [message #466049 is a reply to message #440002] Thu, 29 December 2005 20:39 Go to previous message
david danchuk is currently offline david danchukFriend
Messages: 1
Registered: July 2009
Junior Member
CIRCUMVENTION: ADD THE FALLOWING TO PROJECT --> PROPERTIES -->
JAVA BUILD PATH --> ADD EXTERNAL JAR'S --> ORG.ECLIPSE.CORE.COMMANDS.
?????.JAR & ORG.ECLIPSE.EQUINOX.COMMON.?????.JAR (WHERE ????=VERSION #) FROM YOUR 'ECLIPSE.PLUGINS' FOLDER USED TO START ECLIPSE.

ECLIPSE VER 3.2 M4

BACKGROUND: I TRIED THE FIX FROM SANDBOX 11714 BUT IT DIDN'T WORK FOR ME.
I THEN FOUND BUGZILLA # 116520 AND UPGRADED TO tptp.runtime-TPTP-4.2.0-200512110100.zip & IT DIDN'T WORK EITHER. FINALLY, I FOUND BUGZILLA # 46517 & THEY HAD THE REASON & CAUSE. I THEN FOUND THESE JAR FILES GOT ME GOING!!!!!!!! HOPE THIS HELPS --- DAVE
Previous Topic:CTabFolder focus on new tab
Next Topic:KTable's header text is partially missing
Goto Forum:
  


Current Time: Sun Jun 16 06:48:42 GMT 2019

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

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

Back to the top