pb running jface program [message #303587] |
Wed, 17 May 2006 12:33  |
Eclipse User |
|
|
|
Originally posted by: david.vauquelin.gmail.com
Hi i have eclipse 3.2 and i have problems running application using jface, swt applications are ok. I have no compiling errors, but when i launch my program i have a dialog displaying "could not find main class. Program will exit" and in the console view i have " java.lang.NoClassDefFoundError:org/eclipse/core/runtime/IPro gressMonitor "
"Exception in thread main"
It's maybe that some jar are missing in my classpath? If someone knows why this happen, please help me.
Thank you.
|
|
|
Re: pb running jface program [message #303589 is a reply to message #303587] |
Wed, 17 May 2006 12:55  |
Eclipse User |
|
|
|
david wrote:
> Hi i have eclipse 3.2 and i have problems running application using jface, swt applications are ok. I have no compiling errors, but when i launch my program i have a dialog displaying "could not find main class. Program will exit" and in the console view i have " java.lang.NoClassDefFoundError:org/eclipse/core/runtime/IPro gressMonitor "
> "Exception in thread main"
> It's maybe that some jar are missing in my classpath? If someone knows why this happen, please help me.
> Thank you.
When running a JFace java app (as opposed to a plugin) in 3.2, you need
a few jars on your classpath. ex: in RC4, I can need up to:
org.eclipse.jface_3.2.0.I20060511-0800a.jar
org.eclipse.equinox.common_3.2.0.v20060512.jar (IProgressMonitor)
org.eclipse.core.commands_3.2.0.I20060511-0800a.jar (for the EventManager)
and for text:
org.eclipse.jface.text_3.2.0.v20060512-1326.jar
org.eclipse.text_3.2.0.v20060512-1326.jar
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.05713 seconds