Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » application for pocket PC
application for pocket PC [message #443821] Fri, 01 October 2004 15:57 Go to next message
Alberto is currently offline AlbertoFriend
Messages: 6
Registered: July 2009
Junior Member
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 #443822 is a reply to message #443821] Fri, 01 October 2004 16:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: skpeter.myrealbox.com

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 !!
>
>
>
Re: application for pocket PC [message #444043 is a reply to message #443822] Tue, 05 October 2004 14:47 Go to previous messageGo to next message
Alberto is currently offline AlbertoFriend
Messages: 6
Registered: July 2009
Junior Member
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
Re: application for pocket PC [message #444150 is a reply to message #444043] Thu, 07 October 2004 20:06 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:can you create a SWT widget off screen and scape graphics?
Next Topic:SWT Carbon internal event handling
Goto Forum:
  


Current Time: Fri Apr 26 06:09:47 GMT 2024

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

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

Back to the top