application for pocket PC [message #443821] |
Fri, 01 October 2004 11:57  |
Eclipse User |
|
|
|
Hello,
I must develope an application for pocket PC.
My questions are:
1) Is correct use Eclipse 3.0.1 with the plugin for the SWT
(org.eclipse.swt) without use CLDC / J2ME ?
2) My first test project is the follow:
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
public class Dialog {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("Main");
Menu menu = new Menu(shell, SWT.BAR);
shell.setMenuBar(menu);
shell.open();
FileDialog dialog = new FileDialog(shell, SWT.OPEN);
String name = dialog.open();
if (name != null) shell.setText(name);
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}
and for this i have imported in my Class Path the
library "Standard Widget Toolkit (SWT)" but when i
run the application appear this error:
"java.lang.UnsatisfiedLinkError: no swt-win32-3063 in
java.library.path"
Why ?
Thanks at all !!
|
|
|
|
|
Re: application for pocket PC [message #444150 is a reply to message #444043] |
Thu, 07 October 2004 16:06  |
Eclipse User |
|
|
|
Originally posted by: skpeter._no_spam_.myrealbox.com
Hi Alberto,
just make sure you didn't forget to put minus sign at the beginning of the
string. This is JVM argument and they usually start with -.
HTH,
Peter
Alberto wrote:
> Peter Skopek wrote:
>
>
>>Hi Alberto!
>
>
>>Open Run/Run ... and select your run configuration, then open second tab
>
> folder
>
>>[(x)= Arguments] and add following to VM arguments:
>>
>
> -Djava.library.path=${system:ECLIPSE_HOME}/plugins/org.eclip se.swt.${system:WS}_3.0.1/os/${system:OS}/${system:ARCH}
>
>
>>Note, that if you are using different version of SWT then 3.0.1, change the
>>accordingly.
>
>
>>HTH,
>>Peter
>
>
>
>>Alberto wrote:
>>
>>> and for this i have imported in my Class Path the
>>> library "Standard Widget Toolkit (SWT)" but when i
>>> run the application appear this error:
>>> "java.lang.UnsatisfiedLinkError: no swt-win32-3063 in
>>>java.library.path"
>>> Why ?
>>>
>>>Thanks at all !!
>>>
>>>
>>>
>
>
> Hello Peter,
> thank you for your answer , but when i have put in the VM folder
> the line
> " Djava.library.path=${system:ECLIPSE_HOME}/plugins/org.eclips e.swt.${system:WS}_3.0.1/os/${system:OS}/${system:ARCH} "
>
> compare this error message :
>
> "java.lang.NoClassDefFoundError:
> Djava/library/path=${system:ECLIPSE_HOME}/plugins/org/eclips e/swt/${system:WS}_3/0/1/os/${system:OS}/${system:ARCH}
> Exception in thread "main" "
>
> Hello,
> Alberto
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.26726 seconds