[POCKET PC] SWT exception when creating tree [message #447659] |
Thu, 16 December 2004 09:11 |
Eclipse User |
|
|
|
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 #447742 is a reply to message #447715] |
Thu, 16 December 2004 19:08 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02821 seconds