Check to make sure that JSTAF.jar is in the CLASSPATH.  Also, verify that
STAF is actually running on the system (i.e. from a command prompt run
"STAF local PING PING").

Thanks,
David


                                                                       
 David Bender          11501 Burnet Rd.   Phone (T/L): 1-512-286-5315  
 STAF/STAX Development Bldg. 903-5B002    (363-5315)                   
                       Austin, TX         ITN: 23635315                
 IBM Software Group,   78758-3400         Email: bda...@us.ibm.com     
 WPLC                                                                  
                                                                       
                                                                       






                                                                       
  From:       Cynthia Li <cynthia...@icebreakersoftware.com>           
                                                                       
  To:         staf-users@lists.sourceforge.net                         
                                                                       
  Date:       08/03/2010 09:41 PM                                      
                                                                       
  Subject:    [staf-users] couldn't load STAF editor                   
                                                                       





Hi
I had create a STAF Machine in eclipse and STAF is running in local
host,when I try to open the STAF Editor for the newly created Machine,there
will be error occurred. Whether I need to add jface library at first?How to
add it?
Could not initialize class com.ibm.staf.STAFHandle.
Exception detail as following,
---------------------------------------------------
java.lang.NoClassDefFoundError: Could not initialize class
com.ibm.staf.STAFHandle
    at com.ibm.staf.eclipse.editor.STAFEditor.init(STAFEditor.java:266)
    at org.eclipse.ui.internal.EditorManager.createSite
(EditorManager.java:798)
    at org.eclipse.ui.internal.EditorReference.createPartHelper
(EditorReference.java:644)
    at org.eclipse.ui.internal.EditorReference.createPart
(EditorReference.java:462)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:595)
    at org.eclipse.ui.internal.EditorReference.getEditor
(EditorReference.java:286)
    at org.eclipse.ui.internal.EditorManager.findEditor
(EditorManager.java:403)
    at org.eclipse.ui.internal.EditorManager.findEditor
(EditorManager.java:381)
    at org.eclipse.ui.internal.WorkbenchPage.findEditor
(WorkbenchPage.java:2096)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.isOpenInEditor
(EditorUtility.java:134)
    at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.linkToEditor
(PackageExplorerPart.java:909)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.access$2
(PackageExplorerPart.java:906)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart
$4.linkToEditor(PackageExplorerPart.java:522)
    at org.eclipse.ui.OpenAndLinkWithEditorHelper
$InternalListener.selectionChanged(OpenAndLinkWithEditorHelper.java:57)
    at org.eclipse.jface.viewers.StructuredViewer$3.run
(StructuredViewer.java:864)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.runtime.Platform.run(Platform.java:897)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged
(StructuredViewer.java:862)
    at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect
(StructuredViewer.java:1175)
    at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected
(StructuredViewer.java:1200)
    at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent
(OpenStrategy.java:251)
    at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:245)
    at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:419)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:134)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3468)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3115)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:493)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:194)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:368)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
------------------------------------------------------------------------------

The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to