Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Eddie Atherton is currently offline Eddie AthertonFriend
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 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
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 Go to previous message
Eddie Atherton is currently offline Eddie AthertonFriend
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
Previous Topic:Image Operations
Next Topic:Table
Goto Forum:
  


Current Time: Tue Oct 15 04:59:07 GMT 2019

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

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

Back to the top