jalimo的地址這裏:
[url]https://wiki.evolvis.org/jalimo/index.php/Main_Page[/url]
用你的N800/810去那裏的maemo板塊[url]https://wiki.evolvis.org/jalimo/index.php/Maemo[/url]下載所需要的軟件即可.
SWT的就相對簡單了, 去eclipse.org那裏就有很多samples:
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.*;
public class SimpleSwtSample {
public static void main(String[] args) {
Display display = Display.getDefault();
final Shell shell = new Shell(display);
shell.setLayout(new RowLayout(SWT.VERTICAL));
Label label = new Label(shell, SWT.CENTER);
label.setText("Hello maemo");
Button button = new Button(shell, SWT.NONE);
button.setText("close");
button.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event arg0) {
shell.dispose();
}
});
shell.open();
while (!shell.isDisposed())
if (!display.readAndDispatch())
display.sleep();
}
}
在你PC的eclipse裏面編譯後SSH或者USB copy到N8x0, 然後在x-terminal或者SSH下面運行:
cacao -cp /usr/share/java/swt-gtk.jar:. SimpleSwtSample
由於目前maemo下面還沒有java compiler, 所以不能在機子上編譯.
貌似有人編譯成功了jikes, 但需要很多的lib... 偶是功力不夠... 幕友辦法鳥~~~
有N8x0的童鞋可以試試, 挺好玩的一個機子~~~ 有wifi,skype,flash,python,gcc,java...