Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-swt-dev] Trying to get sample SWT app working on Po cket PC 2002 with J9

This was the setup I was following.  I got it off the FAQ for SWT
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/fa
q.html#pocketpcstart

A: There is an experimental version of SWT for WinCE devices. If you feel
like giving it a try, the following steps might help you getting started. 
Install a VM on your PocketPC. 
The port is tested using the J9 VM for ARM WinCE PocketPC. 
For information on how to get the J9 VM, see at the WebSphere Studio Device
Developer website (which ships J9): 
Get the swt.jar and SWT dll for PocketPC. See Where is the SWT library for
the PocketPC? 
Copy the swt.jar and SWT dll to your device. 
Copy your SWT app to your device. 
For example, compile the following class inside Eclipse and copy the
resulting class file to your device. 
Run your SWT application. 
One way to start your application is to create a shortcut file. 
On your desktop, create a file 'HelloWorld.lnk'. Insert the following line. 
68#\j9\bin\j9.exe -Djava.home=\j9 -cp:\java\swt.jar;\java HelloWorld
This is assuming that you have installed the J9 VM in the folder \j9, and
that you have copied the swt.jar and your application HelloWorld.class into
the folder \java. It also assumes that the SWT dll was copied into the
folder \j9\bin where it will be found by the VM. 
Save the shortcut file. Copy the file to your device. 
Using the file explorer on your device, click on the shortcut file. 
If everything is correctly setup, the SWT app should come up. 


-----Original Message-----
From: David Whiteman [mailto:dlwhiteman@xxxxxxxxxxxxxxx]
Sent: Thursday, November 13, 2003 1:45 PM
To: platform-swt-dev@xxxxxxxxxxx
Subject: Re: [platform-swt-dev] Trying to get sample SWT app working on
Pocket PC 2002 with J9


Thursday, November 13, 2003, 4:29:00 PM, Christopher, Paul J wrote:

> j9.exe is in \j9\bin
> swt.jar and the HelloWorld.class is in j9\java

> Trying to create a shortcut with the target below to execute the problem.

> \j9\bin\j9.exe -Djava.home=\j9 -cp:\java\swt.jar;\java HelloWorld

> Let me know what is wrong.

> PC

Do you have a \j9\lib\jclMax directory?  I believe when you don't
specify which JCL you're using, you will get JCL Max by default.  You
can override this if you want with the -jcl command line switch.  But
it's not enough to have all the stuff in the bin directory; you must
also have the classes.zip, charconv.zip, and locale.zip files from the
"lib" directory tree also.  I also don't know that you need to specify
java.home.

David

-- 
Regards,
David                            
mailto:dlwhiteman@xxxxxxxxxxxxxxx

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top