Freddy Sonnemans wrote:

When trying to set up an EventListener for an SWT Object, BSF creates
the wrong class : Exception in thread "main"
java.lang.NoClassDefFoundError: IllegalName:
org/apache/bsf/util/event/adapters/org_eclipse_swt_events_SelectionAdapter
BSF uses a set of standard event adapters which is used in the process of event handling. Those Event Adapters are named using the relavent event listener type. For instance the adapter which is to be used to process window events is named as java_awt_event_WindowAdapter (replacing "." with "_" and replacing "Listener" with "Adapter"). In your case it seems that org.eclipse.swt.events.SelectionListener is the name of the interface which handle the event. BSF tries to find an adapter which is named as org_eclipse_swt_events_SelectionAdapter following the above convention. The application crashes since there is no a such adapter.

rather than addressing org.eclipse..............

I am using BSF apache 2.3, with JDK 1.5.0_4.

Anyone any ideas ??
If you really want to resolve this what you can do is to implement necessary adapters for event processing with "org_eclipse_swt_events" prefixes and recompile the code. It should not be that difficult and the existing adapters should provide you quite a guideline.

Hope this will help ..
--Sanka

Regards,
Freddy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to