facebook

Cannot load component class JXtaskPaneContainer

  1. MyEclipse Archived
  2.  > 
  3. Matisse/Swing UI Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #312236 Reply

    adn
    Member

    Hi all,

    We have a big problem : we migrated our environnement from W2000 to Windows Seven. We use MyEclipse 8.5 and 8.6.

    All the Workspace had been updated correctly : all the classpath is OK but when we would like to view a form where a custom component like JXTaskPaneContainer (from SwingX) have been imported we get this error :

    Cannot load component class org.jdesktop.swingx.JXTaskPaneContainer from unknown source.The class must be compiled and must be on the classpath of the project to which this form belongs.

    Stack trace :
    java.lang.NullPointerException
    at com.genuitec.eclipse.dehory.util.MatisseClassLoader$FolderClassPath.findClass(MatisseClassLoader.java:112)
    at com.genuitec.eclipse.dehory.util.MatisseClassLoader.findClass(MatisseClassLoader.java:330)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at org.netbeans.modules.form.project.ClassPathUtils.checkUserClass(ClassPathUtils.java:130)
    at org.netbeans.modules.form.MetaComponentCreator.prepareClass0(MetaComponentCreator.java:1317)
    at org.netbeans.modules.form.MetaComponentCreator.prepareClass(MetaComponentCreator.java:1287)
    at org.netbeans.modules.form.MetaComponentCreator.precreateVisualComponent(MetaComponentCreator.java:244)
    at org.netbeans.modules.form.HandleLayer$NewComponentDrag.init(HandleLayer.java:2634)
    at org.netbeans.modules.form.HandleLayer$NewComponentDrag.<init>(HandleLayer.java:2628)
    at org.netbeans.modules.form.HandleLayer.mouseMoved(HandleLayer.java:1712)
    at java.awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:312)
    at java.awt.Component.processMouseMotionEvent(Component.java:6261)
    at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3283)
    at java.awt.Component.processEvent(Component.java:5985)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4583)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4413)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4233)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Component.dispatchEvent(Component.java:4413)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Session Data :
    eclipse.buildId=unknown
    java.version=1.6.0_13
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
    Command-line arguments: -os win32 -ws win32 -arch x86

    We use Maven to manage all the classpath. I imported manually the swing1.6.2.jar but it does not resolve the problem. Another thing that doesn’t work anymore : the “Build automatically” capabilities. When we compile manually evrything works fine but when we save a modified file, nothing is compiled.

    Could anyone help us ?

    Thanks.

    #312291 Reply

    Looks to me like the SwingX .jar file isn’t actually in the classpath. At least, that’s what the error message is saying.
    So, your classpath may NOT be “ok”.
    Can you run the app and have things with SwingX controls displayed?

    #312306 Reply

    adn
    Member

    the swingx jar is in the classpath.

    I verified the “Properties\Builders” panel and the Java Builder is marked as “Missing builder”. But all the project can be built correctly.

    I will recreate the project from scratch.

    Adn

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Cannot load component class JXtaskPaneContainer

You must be logged in to post in the forum log in