- This topic has 5 replies, 4 voices, and was last updated 18 years, 8 months ago by
Riyad Kalla.
-
AuthorPosts
-
jcoombesMemberHi,
I’m just in the process of porting across some Netbeans 5.x projects to MyEclipse 5.0 GA, and I’m completely stumped as to how I get custom Swing components to work within the built-in Matisse editor.
What I have is a number of *very* simple custom components, (couple of Textfield derivatives and a couple of bespoke table classes) and for the life of me I can’t get them to be recognized by the Matisse palette.
I consistently get the following error:
<snip>
java.lang.ClassNotFoundException: xss.rake.controls.swing.IntegerTextField
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:407)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:276)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1245)
at org.netbeans.modules.form.palette.PaletteItem.getComponentClass(PaletteItem.java:139)
at org.netbeans.modules.form.HandleLayer$NewComponentDrag.init(HandleLayer.java:2520)
at org.netbeans.modules.form.HandleLayer$NewComponentDrag.<init>(HandleLayer.java:2466)
at org.netbeans.modules.form.HandleLayer.mouseMoved(HandleLayer.java:1612)
at java.awt.Component.processMouseMotionEvent(Component.java:5533)
at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3111)
at java.awt.Component.processEvent(Component.java:5257)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3905)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1766)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)</snip>
No matter how I try and reference the JAR file containing the custom component.
I’ve seen other postings here on the forum that seem to suggest that other people have been experiencing similar issues – are there any known workarounds/patches to address this, or will I have to just revert back to NetBeans for the time being?
Cheers
JC
September 12, 2006 at 4:43 pm #258473
jcoombesMember*** Date: Tue Sep 12 22:43:38 BST 2006
*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.0 GA
Build id: 20060805-5.0-GA*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.0.1 GA
Build id: 20060810-5.0.1-GAEclipse Graphical Editing Framework
Version: 3.2.0.v20060626
Build id: 20060627-0816Eclipse Platform
Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
Build id: M20060629-1905Eclipse RCP
Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
Build id: M20060629-1905Eclipse Java Development Tools
Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
Build id: M20060629-1905Eclipse Plug-in Development Environment
Version: 3.2.0.v20060609m——6zXJJzJzJq
Build id: M20060629-1905Eclipse Project SDK
Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
Build id: M20060629-1905Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\Program Files\Eclipse\3.2\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
684_74
-product
com.genuitec.myeclipse.product.ide
-vm
C:\Program Files\Java\jdk1.5.0\bin\javaw.exeSeptember 13, 2006 at 1:34 am #258481
jum_xieMemberI don’t known to resolve the question
September 13, 2006 at 12:13 pm #258508
Riyad KallaMemberJC,
Sorry for the delay in responding. Just to cut to the quick of this really fast, can you send me your JAR with a list of 2 or 3 of the custom components in an email (support@genuitec.com ATTN Riyad, with a link to this thread) and I’ll try and import them, and if it fails on my end I’ll file it as a bug with the attached JAR to make sure the designer team has something to test against?October 18, 2006 at 9:25 am #260626
LucMemberJC,
the jar you provided seems to be compiled to be run on a Java6 compliant VM. M4ME is failing when trying to load the widget to get data about it when MyEclipse is run on a 1.5 VM. It works correctly when a 1.6 VM is used.You can fix you problem by getting a version of the jar compiled for Java5 or less, or you can try to run MyEclipse with a 1.6 VM (these VMs are still beta, and has a number of known problems).
October 31, 2006 at 5:02 pm #261159
Riyad KallaMemberThis fix will be in 5.0.3
-
AuthorPosts