SWT for Pocket PC [message #369409] |
Mon, 28 April 2003 20:14 |
Eclipse User |
|
|
|
Originally posted by: assaf.home.com
I'm looking to integrate SWT GUI on pocket PC.
I'm using Creme JVM which works fine.
I trying to download a version of the SWT.jar and the DLL for windows.
some of the messages here pointed me to the CVS site.
I waisted full day looking in the CVS... could not find the right build....
does any body has a simple SWT.jar and a SWT*.DLL I can just use???
and please don't send me to the CVS again...
thanks,
Assaf Goldstein
|
|
|
Re: SWT for Pocket PC [message #369411 is a reply to message #369409] |
Mon, 28 April 2003 20:59 |
Eclipse User |
|
|
|
Originally posted by: veronika_irvine.oti.com
Goto:
http://download.eclipse.org/downloads/drops/I-I20030422-2003 04221030/index.p
hp
Scroll to the bottom of the page - there are two possible Pocket PC
downloads in the SWT Binary and source section:
Windows CE (ARM PocketPC) (Instructions)(http)
(ftp)swt-I20030422-win32-ce-arm-ppc.zip (md5)
Windows CE (ARM PocketPC, J2ME profile) (Instructions)(http)
(ftp)swt-I20030422-win32-ce-arm-ppc-j2me.zip (md5)
The pocket PC stuff will be available as a separate download in all future
Eclipse downloads.
"assaf" <assaf@home.com> wrote in message news:b8k23t$ito$1@rogue.oti.com...
> I'm looking to integrate SWT GUI on pocket PC.
> I'm using Creme JVM which works fine.
>
> I trying to download a version of the SWT.jar and the DLL for windows.
>
> some of the messages here pointed me to the CVS site.
> I waisted full day looking in the CVS... could not find the right
build....
>
> does any body has a simple SWT.jar and a SWT*.DLL I can just use???
> and please don't send me to the CVS again...
>
> thanks,
>
> Assaf Goldstein
>
>
>
>
>
|
|
|
Re: SWT for Pocket PC [message #369413 is a reply to message #369411] |
Tue, 29 April 2003 01:36 |
Eclipse User |
|
|
|
Originally posted by: assaf.goldstein.rogers.com
Thanks..
...and thanks for the quick respond.
How come there's J2ME version of SWT? is it on top of MIDP??
Assaf.
"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:b8k4ns$l3e$1@rogue.oti.com...
> Goto:
>
http://download.eclipse.org/downloads/drops/I-I20030422-2003 04221030/index.p
> hp
>
> Scroll to the bottom of the page - there are two possible Pocket PC
> downloads in the SWT Binary and source section:
>
> Windows CE (ARM PocketPC) (Instructions)(http)
> (ftp)swt-I20030422-win32-ce-arm-ppc.zip (md5)
> Windows CE (ARM PocketPC, J2ME profile) (Instructions)(http)
> (ftp)swt-I20030422-win32-ce-arm-ppc-j2me.zip (md5)
>
> The pocket PC stuff will be available as a separate download in all future
> Eclipse downloads.
>
> "assaf" <assaf@home.com> wrote in message
news:b8k23t$ito$1@rogue.oti.com...
> > I'm looking to integrate SWT GUI on pocket PC.
> > I'm using Creme JVM which works fine.
> >
> > I trying to download a version of the SWT.jar and the DLL for windows.
> >
> > some of the messages here pointed me to the CVS site.
> > I waisted full day looking in the CVS... could not find the right
> build....
> >
> > does any body has a simple SWT.jar and a SWT*.DLL I can just use???
> > and please don't send me to the CVS again...
> >
> > thanks,
> >
> > Assaf Goldstein
> >
> >
> >
> >
> >
>
>
|
|
|
|
Re: SWT for Pocket PC [message #369468 is a reply to message #369420] |
Wed, 30 April 2003 16:53 |
Eclipse User |
|
|
|
Originally posted by: assaf.home.com
What I'm really trying to do is to build an applicaiton on PocketPC that
uses SWT GUI and Serial communication to read GPS information.
You said you use J9 on the PocketPC. do you use WSDD as IDE? or just
Eclipse?
I don't mind using J9 on the pocket PC but I can't the right configuration
to have both serial comm and SWT GUI.
have you ever done this?
Assaf
"Christophe Cornu" <christophe_cornu@ca.ibm.com> wrote in message
news:b8luta$dn$1@rogue.oti.com...
> The J2ME version of SWT can be used on top of CLDC. MIDP is itself on top
> of CLDC but also includes its own UI and event model so it's probably best
> to just use the CLDC profile to develop SWT apps.
> I am using the j9 arm pocket pc VM. Feedback about the Creme JVM is
> interesting.
>
> Chris
>
>
|
|
|
|
Re: SWT for Pocket PC [message #369515 is a reply to message #369492] |
Thu, 01 May 2003 22:40 |
Eclipse User |
|
|
|
Originally posted by: assaf.home.com
Chris,
I can't seem to run the project on neither Windows or Pocket PC.
So here is what I did:
1.. I'm using WSDD 5.5
2.. Source code is attached.
3.. Created a simple J2ME project (jcl:cdlc) that uses SWT (source code
attached.)
4.. Added SWT jar file from eclipse
swt-M20030430-win32-ce-arm-ppc-j2me.zip to the project (in the Java Build
Path Properties Dialog)
5.. Added the following to the VM Arguments on the launch configuration
Dialog:
1.. -jcl:cldc:loadlibrary=C:\apps\PowerLOC\wsdd\cdlctest\Lib\swt -win32-2133.
dll ( The DLL I'm using here is from swt-M20030430-win32.zip)
When I run the project I get the following error:
"<error: unable to load
C:\apps\PowerLOC\wsdd\cdlctest\Lib\swt-win32-2133.dll (Not found in
com.ibm.oti.vm.bootstrap.library.path)>
<warning: unable to load j9cldc20 (JVM_OnLoad failed)>
Internal VM error: Failed to create Java VM"
--- Trying to run the application on Pocket PC -
1.. Attached is the Link File I created:
2.. When I run the project I get the following error:
WARNING: The command line argument "-cp:" has been deprecated.
WARNING: Use "-classpath <path>" or "-cp <path>".
assaf
java.lang.Error: IncompatibleClassChangeError:
org/eclipse/swt/internal/win32/OSVERSIONINFO.dwBuildNumberI
Stack trace:
java/lang/Throwable.<init>()V
java/lang/Throwable.<init>(Ljava/lang/String;)V
com/ibm/oti/error/Error.<init>(Ljava/lang/String;)V
com/ibm/oti/error/IncompatibleClassChangeError.<init>(Ljava/lang/String;)V
org/eclipse/swt/internal/win32/OS.GetVersionExW(Lorg/eclipse /swt/internal/wi
n32/OSVERSIONINFO;)Z
org/eclipse/swt/internal/win32/OS.<clinit>()V
java/lang/Class.initializeImpl()V
java/lang/Class.initialize()V
org/eclipse/swt/widgets/Display.internal_new_GC(Lorg/eclipse /swt/graphics/GC
Data;)I
org/eclipse/swt/graphics/Device.init()V
org/eclipse/swt/widgets/Display.init()V
org/eclipse/swt/graphics/Device.<init>(Lorg/eclipse/swt/graphics/DeviceData;
)V
org/eclipse/swt/widgets/Display.<init>(Lorg/eclipse/swt/graphics/DeviceData;
)V
org/eclipse/swt/widgets/Display.<init>()V
cdlctest/Main.main([Ljava/lang/String;)V
n Source File ---
package cdlctest;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.*;
public class Main {
public static void main(String[] args) {
System.out.println("assaf");
Display display = new Display();
Shell shell =new Shell(display);
shell.setText("Main");
Menu mb = new Menu(shell, SWT.BAR);
shell.setMenuBar(mb);
shell.setLayout(new FillLayout());
new Button(shell,SWT.PUSH);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}
n Lnk File
42#\J9\bin\j9.exe -jcl:cldc:loadlibrary=swt-win32-2133.dll -Djava.home=\J9
-cp:\J9\Lib\classes.zip;\PowerLOC\SoftLOC\Main.jar;\PowerLOC \SoftLOC\swt.jar
; cdlctest.Main
PLEASE HELP..
Assaf
============================================================ ================
=====
"Christophe Cornu" <christophe_cornu@ca.ibm.com> wrote in message
news:b8rbiv$vfc$1@rogue.oti.com...
> The j9 CLDC library provides a serial port connector which should work on
> PocketPC. I don't have a serial cable on mine, but you can post j9, WSDD
> and serial port questions to this newsgroup.
>
news://news.software.ibm.com/ibm.software.websphere.studio.d evice-developer
>
> To use SWT with j9 on a CLDC profile one method which can be used with
> either Eclipse or WSDD is to:
> - install j9 with the CLDC classes.zip (ask newsgroup above - it comes
> with WSDD)
> - install the WinCE swt.jar and native library for J2ME. You can get it
> from the Eclipse download page. e.g. a direct link to a recent integration
> build is:
>
http://download.eclipse.org/downloads/drops/I-I20030429-2003 04291456/downloa
d.php?dropFile=swt-I20030429-win32-ce-arm-ppc-j2me.zip
> It contains the swt.jar you need and the dll.
> - create a shortcut file MyApp.lnk such as:
> 142#\j9cldc\bin\j9.exe -jcl:cldc:loadlibrary=swt-win32-3002
> -Djava.home=\j9cldc -cp:\j\swt.jar;\j\myapp.jar MyApp
> (adjust to your own location of j9, swt.jar and your application
myapp.jar)
> - copy this shortcut file and click on it from the Ipaq file explorer.
>
> The main differences with J2SE are:
> - The command line tells the j9 VM to use the cldc classes.zip and to load
> the swt native library (since there is no System.loadLibrary under CLDC,
> it has to be done by the VM)
> - Use a swt.jar for J2ME. This jar does not use non CLDC api such as
> System.loadLibrary etc.
>
> If you have problem running SWT apps using j9 cldc, please post back
> details on the issues.
>
> Chris
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02784 seconds