Table.Class (in Pocket PC) NoClassDefFoundError [message #461738] |
Thu, 29 September 2005 05:57 |
Eclipse User |
|
|
|
Originally posted by: ccjoz2002.yahoo.co.uk
Hi
I'm trying to run a simple table in Pocket PC using J9 but get this error.
"Exception in thread "main" java.lang.NoClassDefFoundError:
org.eclipse.swt.widgets.Table at TableSimple.main(Unknown Source)"
Please can you help me find a way out?
My Link file
255#"\Program Files\J9\PPRO10\bin\j9.exe" -jcl:ppro10
-Xbootclasspath/p:"\swt\swt.jar" -cp "\My Documents\Java\helloworld"
TableSimple
I downloaded this (swt-3.1-win32-wce_ppc-arm-j2se)for the swt jar
My Java file
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.*;
public class TableSimple {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
Table table1 = new Table(shell,SWT.BORDER);
table1.setBounds(10,10,270,60);
table1.setLinesVisible(true);
table1.setHeaderVisible(true);
TableColumn name = new TableColumn(table1,SWT.LEFT);
name.setText("Name");
name.setWidth(50);
TableItem item1 = new TableItem(table1,SWT.NONE);
item1.setText(new String[] {"Sarah","15","390 Sussex Ave"});
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}
Regards
Clinton
|
|
|
Powered by
FUDForum. Page generated in 0.02508 seconds