Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Table.Class (in Pocket PC) NoClassDefFoundError
Table.Class (in Pocket PC) NoClassDefFoundError [message #461738] Thu, 29 September 2005 05:57
Eclipse UserFriend
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
Previous Topic:OleAutomation wrapper code generator
Next Topic:Canvas with Text and Image
Goto Forum:
  


Current Time: Thu Apr 25 01:09:32 GMT 2024

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

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

Back to the top