Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » IllegalAccessError from TabFolder (more info)
IllegalAccessError from TabFolder (more info) [message #442991] Wed, 15 September 2004 13:12 Go to next message
Eclipse UserFriend
TabFolder from SWT is producing a number of IllegalAccessError
exceptions.

Exception in thread "main" java.lang.IllegalAccessError:
org/eclipse/swt/widgets/Widget.checkBits(IIIIIII)I
        at org.eclipse.swt.widgets.TabFolder.checkS tyle(Unknown Source)
        at org.eclipse.swt.widgets.TabFolder.<init >(Unknown Source)

I removed the call to checkBits from TabFolder.checkStyle and ran the
app again. I get another IllegalAccessError:

Exception in thread "main" java.lang.IllegalAccessError:
org/eclipse/swt/widgets/Widget.isValidSubclass()Z
        at org.eclipse.swt.widgets.TabFolder.checkS ubclass(Unknown Source)
        at org.eclipse.swt.widgets.Widget.<init>(Unknown Source)
        at org.eclipse.swt.widgets.Control.<init>(Unknown Source)
        at org.eclipse.swt.widgets.TabFolder.<init >(Unknown Source)

If I remove that call, I get the same error from
TabItem.checkSubclass. If I remove that call, I get a
NullPointerException from TabFolder.createItem().

This very app ran fine on PocketPC 2002 WSDD 5.5 J9 2.0 jcl:foun. I'm
not sure what has changed.

Cheers,
Shaun
Re: IllegalAccessError from TabFolder (more info) [message #442994 is a reply to message #442991] Wed, 15 September 2004 13:24 Go to previous messageGo to next message
Eclipse UserFriend
Of course this isn't true; I know what I changed. I moved to PocketPC
2003 WSDD 5.7.1 J9 2.2 jcl:ppro.

Cheers,
Shaun

> This very app ran fine on PocketPC 2002 WSDD 5.5 J9 2.0 jcl:foun.
> I'm not sure what has changed.
Re: IllegalAccessError from TabFolder [RESOLVED] [message #442997 is a reply to message #442991] Wed, 15 September 2004 15:37 Go to previous message
Eclipse UserFriend
The Personal Profile (ppro) JCL from WSDD 5.7.1 includes an internal
subset of SWT. Any classes in this subset override classes provided
by the SWT in the classpath. SWT must be prepended to the
bootclasspath to override the internal copy. Here's an example:

"\Program Files\J9\PPRO10\bin\j9.exe" -jcl:ppro10
-Xbootclasspath/p:/share/java/SWT.jar
-cp /share/java/pocketmanager.jar pathway.pocketmanager.PocketManager

Cheers,
Shaun


> TabFolder from SWT is producing a number of IllegalAccessError
> exceptions.
>
> Exception in thread "main" java.lang.IllegalAccessError:
> org/eclipse/swt/widgets/Widget.checkBits(IIIIIII)I
> at org.eclipse.swt.widgets.TabFolder.checkStyle(Unknown So urce)
> at org.eclipse.swt.widgets.TabFolder.<init>(Unknown Source)
Previous Topic:IllegalAccessError Widget.checkBits
Next Topic:Edit Mask for text fields without using Pattern or Matching classes
Goto Forum:
  


Current Time: Sat Jul 05 07:05:26 EDT 2025

Powered by FUDForum. Page generated in 0.03770 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top