Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Can I Use Same Java/SWT App on Windows, Linux & PocketPC
Can I Use Same Java/SWT App on Windows, Linux & PocketPC [message #467062] |
Mon, 23 January 2006 20:22 |
Eddie Atherton Messages: 8 Registered: July 2009 |
Junior Member |
|
|
Hi,
I recently started writing a simple Java application, using swing, as
I wanted the same code to run on Windows and Linux. (Which in itself
is painful, as I'm not really a Java person :-( ). It's a very simple
app that sends XML requests, via TCP, to a server, and displays the
results.
I've just been given a PocketPC running Windows Mobile 2003 2nd
Edition, and thought it would be a great idea if the app could run
there as well.
As I can't use swing on the handheld, I started looking for
alternatives.
Is it possible to write a single codebase, using SWT, that will run on
all these platforms. I know there will be challenges with the screen
sizes, but other than that, what could be "problem areas".
Are there any other "gottchas" I should be concerned about.
Cheers,
Eddie
|
|
|
Re: Can I Use Same Java/SWT App on Windows, Linux & PocketPC [message #467088 is a reply to message #467062] |
Tue, 24 January 2006 16:37 |
Veronika Irvine Messages: 1272 Registered: July 2009 |
Senior Member |
|
|
You can run SWT on all of these platforms.
On pocket PC, we do not have all the functionality that we have on the
desktop to keep the jar and dll size small. For example, we do not include
anything in the org.eclipse.swt.custom package. We do not include drag and
drop or OLE. Some of these things can be added if you want to roll your own
jar.
See:
http://www.eclipse.org/swt/faq.php#pocketpcstart
http://www.eclipse.org/swt/faq.php#pocketpclibrary
http://www.eclipse.org/swt/snippets/index.php#pocketpc
"Eddie Atherton" <Trouble@Mill.> wrote in message
news:dedat1dcrdn0u0gi5i8957tqoscqhqke7b@4ax.com...
> Hi,
>
> I recently started writing a simple Java application, using swing, as
> I wanted the same code to run on Windows and Linux. (Which in itself
> is painful, as I'm not really a Java person :-( ). It's a very simple
> app that sends XML requests, via TCP, to a server, and displays the
> results.
>
> I've just been given a PocketPC running Windows Mobile 2003 2nd
> Edition, and thought it would be a great idea if the app could run
> there as well.
>
> As I can't use swing on the handheld, I started looking for
> alternatives.
>
> Is it possible to write a single codebase, using SWT, that will run on
> all these platforms. I know there will be challenges with the screen
> sizes, but other than that, what could be "problem areas".
>
> Are there any other "gottchas" I should be concerned about.
>
> Cheers,
> Eddie
|
|
|
Re: Can I Use Same Java/SWT App on Windows, Linux & PocketPC [message #467093 is a reply to message #467088] |
Tue, 24 January 2006 17:43 |
Eddie Atherton Messages: 8 Registered: July 2009 |
Junior Member |
|
|
On Tue, 24 Jan 2006 11:37:29 -0500, "Veronika Irvine"
<veronika_irvine@oti.com> wrote:
>You can run SWT on all of these platforms.
>
>On pocket PC, we do not have all the functionality that we have on the
>desktop to keep the jar and dll size small. For example, we do not include
>anything in the org.eclipse.swt.custom package. We do not include drag and
>drop or OLE. Some of these things can be added if you want to roll your own
>jar.
Yes, I understand that the PPC version is stripped down, and I was not
planning on using any of the "missing" funcionality.
My question was more about the practicallity of only writing a single
codebase to run on desktops ans well as the PPC.
>See:
>http://www.eclipse.org/swt/faq.php#pocketpcstart
>http://www.eclipse.org/swt/faq.php#pocketpclibrary
>http://www.eclipse.org/swt/snippets/index.php#pocketpc
Already seen these, and have "Hello World" running on the handheld..
<GRIN>
Cheers,
Eddie
|
|
|
Goto Forum:
Current Time: Wed Sep 25 14:38:52 GMT 2024
Powered by FUDForum. Page generated in 0.19399 seconds
|