Skip to main content

LWUIT with PhoneME Advanced or other CDC vm

8 replies [Last post]
gsekar
Offline
Joined: 2008-07-03
Points: 0

Has anyone used LWUIT sucessfully with a CDC/Foundation profile compliant VM? In the developers documentation, it says that LWUIT is for devices that support MIDP 2.0. Subsequently it also says that it is binary compatible with CDC. When I create a simple test on CDC, it throws the error at runtime

Exception in thread "main" java.lang.NoClassDefFoundError: javax/microedition/lcdui/Font
at com.sun.lwuit.SystemFont.(SystemFont.java:34)
at com.sun.lwuit.Font.getDefaultFont(Font.java:279)
at com.sun.lwuit.plaf.Style.(Style.java:116)
at com.sun.lwuit.plaf.UIManager.(UIManager.java:48)
at com.sun.lwuit.plaf.UIManager.(UIManager.java:46)
at com.sun.lwuit.Component.(Component.java:176)
at com.sun.lwuit.Container.(Container.java:60)
at com.sun.lwuit.Form.(Form.java:166)
at com.sun.lwuit.Form.(Form.java:510)

This tells me that LWUIT depends on the existence of javax.microedition.lcdui libraries and cant be used as a replacement for java.awt lib in a CDC environment.

Am I missing anything here?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
camroe
Offline
Joined: 2008-08-20
Points: 0

Hi all,

I am in a situation where I am looking for a toolset that will allow me to develop UI's on an Arm9 device. This device has an SVGA monitor attached and runs Connected Device Configuration / Foundation Profile / Personal Basis Profile (CDC/FP/PBP). I also want to avoid having a 'develop your own wigets' project! On the other hand, I also need to get going on it .... now.

It's been a while since this thread has seen some activity so a couple of questions for you guys.

1. When is a CDC version (without MIDP) going to be available?
2. Is there a possibility to get an early release? This would save pile of work when the 'official' release came out.

Many thanks

Cam

Shai Almog

Hi,
> 1. When is a CDC version (without MIDP) going to be available?

There is currently no defined timeline for this although I would hope
it wouldn't take long.

> 2. Is there a possibility to get an early release? This would save
> pile of work when the 'official' release came out.

Right now there are no plans for that, however if you want to
indicate your interest in such early access you can send a mail to
the lwuit comments alias at Sun ( lwuit@sun.com ). If we have such
plans of an early access we could go through the standard process in
such a case.

>
> Many thanks
>
> Cam
> [Message sent by forum member 'camroe' (camroe)]
>
> http://forums.java.net/jive/thread.jspa?messageID=294469
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

kschultz_buglabs
Offline
Joined: 2008-08-19
Points: 0

Shai,

Thanks for the work so far. Count us among those who are interested in seeing and open source version of LWUIT running on phoneME advanced. Right now we're using AWT and LWUIT looks like a substantial improvement.

Thanks,
Kevin Schultz
Bug Labs, Inc.

solfla
Offline
Joined: 2009-01-18
Points: 0

Hi,
I read that recently on http://lwuit.blogspot.com/ that a CDC port of LWUIT is available. While it seems to currently work fine, is there any timeline for an open source version of this ?

However, are JavaDocs available ? In LWUIT demo, Display.init() method use a lwuit.Context class not documented in MIDP port. Or is it similar to a swing class ?

Thanks and regards

Shai Almog

Hi,
please refer CDC related questions to the CDC TV forum as I mentioned
here:
http://lwuit.blogspot.com/2009/01/javatv-forum-is-now-open.html

> Hi,
> I read that recently on http://lwuit.blogspot.com/ that a CDC port
> of LWUIT is available. While it seems to currently work fine, is
> there any timeline for an open source version of this ?
>
> However, are JavaDocs available ? In LWUIT demo, Display.init()
> method use a lwuit.Context class not documented in MIDP port. Or is
> it similar to a swing class ?
>
> Thanks and regards
> [Message sent by forum member 'solfla' (solfla)]
>
> http://forums.java.net/jive/thread.jspa?messageID=326719
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

terrencebarr
Offline
Joined: 2004-03-04
Points: 0

The current port of LWUIT relies on MIDP. So you can run LWUIT on a CDC stack that has MIDP - such as phoneME Advanced. If you want LWUIT to run on PBP you'll need a version of LWUIT that has been ported to that stack - and that is not available just yet.

With the availability of the LWUIT sources I expect the community to jump in that port.

-- Terrence

Shai Almog

I was just about to click send ;-)

the CDC specific version wasn't released yet. We have a working
version running on CDC and demoed it in Java one running on a HD TV
but its not yet ready for public consumption since it didn't get
enough cycles from us.

The CDC port uses a different LWUIT.jar file since javax.microedition
isn't supported by CDC, instead that port uses AWT (similarly to the
Swing port running within the resource editor).
Your code and usage of LWUIT can remain exactly the same though.

We hope to release it within a reasonable time frame.

Thanks,
Shai.

> The current port of LWUIT relies on MIDP. So you can run LWUIT on a
> CDC stack that has MIDP - such as phoneME Advanced. If you want
> LWUIT to run on PBP you'll need a version of LWUIT that has been
> ported to that stack - and that is not available just yet.
>
> With the availability of the LWUIT sources I expect the community
> to jump in that port.
>
> -- Terrence
> [Message sent by forum member 'terrencebarr' (terrencebarr)]
>
> http://forums.java.net/jive/thread.jspa?messageID=284219
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

gsekar
Offline
Joined: 2008-07-03
Points: 0

Thanks Shai & Terrance. Appreciate the quick replies.