Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [POCKET PC] SWT exception when creating tree
[POCKET PC] SWT exception when creating tree [message #447659] Thu, 16 December 2004 09:11 Go to next message
Eclipse UserFriend
Originally posted by: guillaume_godetbar.nospam.nospam.hotmail.com

Hi,

Did anyone manage to create tree widgets on a pocket pc ? I've tried
different builds of SWT (P.Profile) but I always end up with the same
error :

java.lang.IllegalAccessError:
org/eclipse/swt/widgets/Widget.checkBits(IIIIIII)I

whenever I try to declare a tree, even with simple stuff such as :

Tree testTree = new Tree(this, SWT.SINGLE);

Any ideas are welcomed !
Thanks,

Guillaume Godet-Bar
Re: [POCKET PC] SWT exception when creating tree [message #447715 is a reply to message #447659] Thu, 16 December 2004 15:38 Go to previous messageGo to next message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
You need to use the SWT build from the Eclipse download page. The ones
shipping with WSDD may not contain widgets or API not required for embedded
profiles.

e.g.
http://fullmoon.ottawa.ibm.com/downloads/drops/I20041216-080 0/index.php

Look for "SWT Binary and Source"
And pick up the "Windows CE (ARM Pocket PC)" build.
Don't confuse it with the J2ME version that runs over CLDC.

Hope it helps,
Chris
Re: [POCKET PC] SWT exception when creating tree [message #447742 is a reply to message #447715] Thu, 16 December 2004 19:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: guillaume_godetbar.nospam.nospam.hotmail.com

Hi Chris,
Well I've reinstalled a clean j9, tried several SWT builds (for Pocket
PC, no J2ME, etc.) from the Eclipse project, but I still have the same
error. I've also tried some really stripped down code (imports omitted) :

public class TreeTest {


public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display, SWT.CLOSE);

GridLayout grid = new GridLayout();
grid.numColumns = 1 ;
shell.setLayout(grid);


Tree arbre = new Tree(shell, SWT.SINGLE);

shell.open();

while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}

.... but once again I get the error. I've looked in the SWT sources, but
this bug really doesn't make sense (error while checking a standard tree
style ?).

Looking for some insight...

Guillaume
[SOLVED] cf. bug 73817 [message #447743 is a reply to message #447742] Thu, 16 December 2004 20:10 Go to previous message
Eclipse UserFriend
Originally posted by: guillaume_godetbar.nospam.nospam.hotmail.com

I used a -Xbootclasspath/p:/share/java/SWT.jar equivalent in my link.
And it worked. That saves the day...

Guillaume
Previous Topic:how to resize a dialog and its content?
Next Topic:Width of compound widget
Goto Forum:
  


Current Time: Fri Apr 26 23:37:03 GMT 2024

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

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

Back to the top