Skip to main content

New LWUIT port for TV/CDC with Xlet support

8 replies [Last post]
tamir
Offline
Joined: 2006-08-29

Hi,

I'm happy to announce that we have released a new LWUIT port for TV/CDC with Xlet support and a HelloWorld sample, to be run with a middelware that support JavaTV 1.0

It can be downland from: https://javatv-developers.dev.java.net/files/documents/9660/149787/LWUIT...

Regards,
Tamir
https://javatv-developers.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
earwen2
Offline
Joined: 2010-06-07

It's working now without some error :D
I've just moved the methods Display.init() and buildTVContainer() from initXlet() to startXlet()

Regards :)

tamir
Offline
Joined: 2006-08-29

Great news - good job!!

Regards,
Tamir
https://javatv-developers.dev.java.net/

earwen2
Offline
Joined: 2010-06-07

It's working :D

but i have a problem when my sample is running, i can read from the consola this mesage:
java.lang.NullPointerException
at com.sun.lwuit.impl.awt.AWTImplementation$C.paintBuffer(Unknown Source)
at com.sun.lwuit.impl.awt.AWTImplementation$C.paint(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at org.havi.ui.HScene.paint(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventQueueProxy.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
at java.lang.Thread.startup(Unknown Source)

Thank u for everything

earwen2
Offline
Joined: 2010-06-07

Hello,
thanks!! It is very interesting but i'm trying to prove your example and the answer is this error:

java.lang.NoClassDefFoundError: com.sun.lwuit.util.Resources
at java.lang.Class.getConstructor0([Ljava/lang/Class;I)Ljava/lang/reflect/Constructor;(Native Method)
at java.lang.Class.getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;(Unknown Source)
at tv.osmosys.application.AppManager$XletApp.xletLoad()Z(Unknown Source)
at tv.osmosys.application.AppManager$XletApp.processAction(Ltv/osmosys/application/AppManager$XletAction;)V(Unknown Source)
at tv.osmosys.application.AppManager$XletApp.run()V(Unknown Source)
at java.lang.Thread.run()V(Unknown Source)
at java.lang.Thread.startup(Z)V(Unknown Source)

Could you help me to fix it? I'm working with eclipse and mhp 1.0.3 and 1.1.3 and always i have the same answer :(

Thanks

tamir
Offline
Joined: 2006-08-29

Hello,

As far as i re-checked, com.sun.lwuit.util.Resources is existing in the lwuit.jar we provide.
Can it be that it's not in the right class path?

Regards,
Tamir
https://javatv-developers.dev.java.net/

earwen2
Offline
Joined: 2010-06-07

Thanks so much for ur answer Tamir! :D

I configured the build path of my project by adding ur lwuit.jar. The problem was when i tried to run my project, at the end i added the .class from lwuit.jar to the bin folder of my project but i'm having a new problem :(.

Maybe u could help me...

The asnwer when i try to run my project is:

java.lang.NoClassDefFoundError: javax.microedition.lcdui.Displayable
at com.sun.lwuit.impl.ImplementationFactory.createImplementation(Unknown Source)
at com.sun.lwuit.Display.init(Unknown Source)
at com.sun.demo.Main.initXlet(Unknown Source)
at tv.osmosys.application.AppManager$XletApp.xletInit(Unknown Source)
at tv.osmosys.application.AppManager$XletApp.processAction(Unknown Source)
at tv.osmosys.application.AppManager$XletApp.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at java.lang.Thread.startup(Unknown Source)

Any idea, plz? :(

Thanks so much, regards

earwen

aventuri
Offline
Joined: 2007-05-16

hi,

let me tell you in advance that this LWUIT for XLET environment is a very interesting outcome! thanx

i tried to run the demo application on a real MHP STB available in Italy (AdbGlobal ADB1110SH with MHP 1.0.2) but it fails with this error:

"java.lang.UnsupportedClassVersionError: Unsupported major.minor version 48.0"

i checked into the class file provided in the lwuit.jar and i found 0x30 at the 8th byte. AFAIK it means it was compiled with target = 1.4.

in MHP 1.0.2 you need to compile with target 1.2 (where hex is 0x2E) for it to be supported on the box.

maybe this was a package meant to run on some PC emulator like xletview on a standard edition JDK. right?

if the java source code are available somewhere i could compile myself for the right target..

bye

Andrea Venturi

PS. Dump of the log from the box:

....
[1] ApplicationTracker proxy: a03ea APP_AVAILABLE
[1] ApplicationTracker proxy: a03ea APP_START_REQUEST
[1] ApplicationTracker proxy: a03ea APP_AVAILABLE
[1] ApplicationTracker proxy: a03ea APP_START_REQUEST
[1] ApplicationTracker proxy: a03ea APP_AVAILABLE
[1] ApplicationTracker proxy: a03ea APP_START_REQUEST
APPMAN: process 0#5 created (workdir: /oc/40000/)
PIDMAP: 0#5 0xa 0x3ea
[1] MPNotify: 0#5 manager started.
[0#5] XLET: loading...
[0#5:2] java.lang.UnsupportedClassVersionError: Unsupported major.minor version 48.0
[0#5:2] at java.lang.ClassLoader.defineClass0(Ljava/lang/String;[BIILjava/security/ProtectionDomain;)Ljava/lang/Class;(Native Me)
[0#5:2] at java.lang.ClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/ProtectionDomain;)Ljava/lang/Class;(Unknown So)
[0#5:2] at com.adb.java.lang.FileClassLoader.readFromFile(Ljava/io/File;)Ljava/lang/Class;(Unknown Source)
[0#5:2] at com.adb.java.lang.FileClassLoader.loadClass(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/Class)
[0#5:2] at com.adb.java.lang.FileClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;(Unknown Source)
[0#5:2] at java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;(Unknown Source)
[0#5:2] at java.lang.ClassLoader.loadClassInternal(Ljava/lang/String;)Ljava/lang/Class;(Unknown Source)
[0#5:2] at java.lang.Class.getConstructor0([Ljava/lang/Class;I)Ljava/lang/reflect/Constructor;(Native Method)
[0#5:2] at java.lang.Class.getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;(Unknown Source)
[0#5:2] at tv.osmosys.application.AppManager$XletApp.xletLoad()Z(Unknown Source)
[0#5:2] at tv.osmosys.application.AppManager$XletApp.loop0(Ltv/osmosys/application/AppManager$XletAction;)V(Unknown Source)
[0#5:2] at tv.osmosys.application.AppManager$XletApp.run()V(Unknown Source)
[0#5:2] at java.lang.Thread.run()V(Unknown Source)
[0#5:2] at java.lang.Thread.startup(Z)V(Unknown Source)

tamir
Offline
Joined: 2006-08-29

Hi,

You are right, we are building it for jdk 1.4, since we are supporting PBP 1.1.
Unfortunately the source is not available for you to compile it.

Regards,
Tamir