Compiling a "HelloWorld" xlet for OpenGinga

103 views
Skip to first unread message

trulo_17

unread,
Jul 13, 2010, 1:29:16 PM7/13/10
to Desenvolvimento em Ginga Java para TV Digital
Hi everyone. I have OpenGinga running over Vmware Player, I've been
able to run the BBBxlet example and switch channels. But when I tried
to run my "HelloWorld" xlet( which I previously tested with xletView),
I got major minor error, so I would like to know how shoud I proceed
in order to succesufully compile my java source and run it in
OpenGinga. Thx in advance

Francisco Fernandez

unread,
Jul 16, 2010, 10:28:52 AM7/16/10
to Desenvolvimento em Ginga Java para TV Digital
Hi.
I fixed this by switching to version 1.4 of java. Anyway, I can´t see any graphics, seems mhp is no longer supported( at least for running; you can still compile mhp stuff in OpenGinga).


--
Você está recebendo esta mensagem porque se inscreveu no grupo "Desenvolvimento em Ginga Java para TV Digital" dos Grupos do Google.
Para postar neste grupo, envie um e-mail para ging...@googlegroups.com.
Para cancelar a inscrição nesse grupo, envie um e-mail para gingajava+...@googlegroups.com.
Para obter mais opções, visite esse grupo em http://groups.google.com/group/gingajava?hl=pt-BR.


Raoni Lourenço

unread,
Jul 16, 2010, 1:34:53 PM7/16/10
to ging...@googlegroups.com
Hello,

MHP requires some APIs that are not present in Ginga, Then, if you use
some classes from HAVI or DAVIC, your application will not be able to
compile in OpenGinga, But, if you are using only javaTV stuff, you
should not have problems to compile them.

Regards,

Raoni

>> gingajava+...@googlegroups.com<gingajava%2Bunsu...@googlegroups.com>


>> .
>> Para obter mais opções, visite esse grupo em
>> http://groups.google.com/group/gingajava?hl=pt-BR.
>>
>>
>
> --
> Você está recebendo esta mensagem porque se inscreveu no grupo
> "Desenvolvimento em Ginga Java para TV Digital" dos Grupos do Google.
> Para postar neste grupo, envie um e-mail para ging...@googlegroups.com.
> Para cancelar a inscrição nesse grupo, envie um e-mail para
> gingajava+...@googlegroups.com.
> Para obter mais opções, visite esse grupo em
> http://groups.google.com/group/gingajava?hl=pt-BR.
>
>


--
Raoni Lourenço

Francisco Fernandez

unread,
Jul 16, 2010, 2:41:11 PM7/16/10
to ging...@googlegroups.com
Hi Raoni.
 
Thx for your answer. In fact, my source( which uses some Havi classes) is able to compile in OpenGinga. The problem is on execution: program is loaded, writes to standard output but I don't see any graphics( in particular, it should show some HLabel).
 
Best Regards

2010/7/16 Raoni Lourenço <rao...@gmail.com>

Francisco Fernandez

unread,
Jul 16, 2010, 3:56:31 PM7/16/10
to ging...@googlegroups.com
In fact, I'm trying to run a simple HelloWorld xlet, showing a single Label, but I'm using this time Java-DTV( in a similar way as the BBBXlet eexample): My program is not able to show any graphic( I'm using form.setVisible() but it's being ignored, my form is not set visible). Basically, I'm making a simpler version of the BBBXlet example which comes with OpenGinga.
 
Until now, the only succesufull xlet I have ran is the BBBXlet example( I know for sure it's not a problem with compilation: I copy the source code from OpenGinga and compile it again, then copy the .class back to OpenGinga and it worked as expected). I suspect I'm missing some configuration issue. I thought it was something related with the apliccation id or the organization id in tmp/config.xml , but I changed this parameters for BBBXlet and it still ran.
 
If someone can shed some light in how to run a "visible" xlet in OpenGinga, I would be very grateful.
 
Greetings.

trulo_17

unread,
Jul 27, 2010, 11:12:18 AM7/27/10
to Desenvolvimento em Ginga Java para TV Digital
I was finally able to run my own aplications: what was happening is
that i was simply drawing outside my Form. Anyway, My ouput messages
were misleading, because many of the methods in Form and Label are not
yet implemented in OpenGinga Beta 1, one example: when you set your
Label text, this text is in fact shown in your Label, but when you use
the getText() method, you get null in return, cause this.text is not
actually updated. Similar things happen with Form.isVisible and other
methods, so you must not really rely on them unless, of course, you
modify the required sources.

Hope this info can help someone.

Regards.

On 16 jul, 14:56, Francisco Fernandez <trul...@gmail.com> wrote:
> In fact, I'm trying to run a simple HelloWorld xlet, showing a single Label,
> but I'm using this time Java-DTV( in a similar way as the BBBXlet eexample):
> My program is not able to show any graphic( I'm using form.setVisible() but
> it's being ignored, my form is not set visible). Basically, I'm making a
> simpler version of the BBBXlet example which comes with OpenGinga.
>
> Until now, the only succesufull xlet I have ran is the BBBXlet example( I
> know for sure it's not a problem with compilation: I copy the source code
> from OpenGinga and compile it again, then copy the .class back to OpenGinga
> and it worked as expected). I suspect I'm missing some configuration issue.
> I thought it was something related with the apliccation id or the
> organization id in tmp/config.xml , but I changed this parameters for
> BBBXlet and it still ran.
>
> If someone can shed some light in how to run a "visible" xlet in OpenGinga,
> I would be very grateful.
>
> Greetings.
>
> On Fri, Jul 16, 2010 at 1:41 PM, Francisco Fernandez <trul...@gmail.com>wrote:
>
>
>
> > Hi Raoni.
>
> > Thx for your answer. In fact, my source( which uses some Havi classes) is
> > able to compile in OpenGinga. The problem is on execution: program is
> > loaded, writes to standard output but I don't see any graphics( in
> > particular, it should show some HLabel).
>
> > Best Regards
>
> > 2010/7/16 Raoni Lourenço <raon...@gmail.com>
>
> > Hello,
>
> >> MHP requires some APIs that are not present in Ginga, Then, if you use
> >> some classes from HAVI or DAVIC, your application will not be able to
> >> compile in OpenGinga, But, if you are using only javaTV stuff, you
> >> should not have problems to compile them.
>
> >> Regards,
>
> >> Raoni
>
> >> On 7/16/10, Francisco Fernandez <trul...@gmail.com> wrote:
> >> > Hi.
> >> > I fixed this by switching to version 1.4 of java. Anyway, I can´t see
> >> any
> >> > graphics, seems mhp is no longer supported( at least for running; you
> >> can
> >> > still compile mhp stuff in OpenGinga).
>
> >> > On Tue, Jul 13, 2010 at 12:29 PM, trulo_17 <trul...@gmail.com> wrote:
>
> >> >> Hi everyone. I have OpenGinga running over Vmware Player, I've been
> >> >> able to run the BBBxlet example and switch channels. But when I tried
> >> >> to run my "HelloWorld" xlet( which I previously tested with xletView),
> >> >> I got major minor error, so I would like to know how shoud I proceed
> >> >> in order to succesufully compile my java source and run it in
> >> >> OpenGinga. Thx in advance
>
> >> >> --
> >> >> Você está recebendo esta mensagem porque se inscreveu no grupo
> >> >> "Desenvolvimento em Ginga Java para TV Digital" dos Grupos do Google.
> >> >> Para postar neste grupo, envie um e-mail para
> >> ging...@googlegroups.com.
> >> >> Para cancelar a inscrição nesse grupo, envie um e-mail para
> >> >> gingajava+...@googlegroups.com<gingajava%2Bunsubscribe@googlegroups­.com>
> >> <gingajava%2Bunsu...@googlegroups.com<gingajava%252Bunsubscribe@googleg­roups.com>
>
> >> >> .
> >> >> Para obter mais opções, visite esse grupo em
> >> >>http://groups.google.com/group/gingajava?hl=pt-BR.
>
> >> > --
> >> > Você está recebendo esta mensagem porque se inscreveu no grupo
> >> > "Desenvolvimento em Ginga Java para TV Digital" dos Grupos do Google.
> >> > Para postar neste grupo, envie um e-mail para
> >> ging...@googlegroups.com.
> >> > Para cancelar a inscrição nesse grupo, envie um e-mail para
> >> > gingajava+...@googlegroups.com<gingajava%2Bunsubscribe@googlegroups­.com>
> >> .
> >> > Para obter mais opções, visite esse grupo em
> >> >http://groups.google.com/group/gingajava?hl=pt-BR.
>
> >> --
> >> Raoni Lourenço
>
> >> --
> >>  Você está recebendo esta mensagem porque se inscreveu no grupo
> >> "Desenvolvimento em Ginga Java para TV Digital" dos Grupos do Google.
> >> Para postar neste grupo, envie um e-mail para ging...@googlegroups.com.
> >> Para cancelar a inscrição nesse grupo, envie um e-mail para
> >> gingajava+...@googlegroups.com<gingajava%2Bunsubscribe@googlegroups­.com>
> >> .
> >> Para obter mais opções, visite esse grupo em
> >>http://groups.google.com/group/gingajava?hl=pt-BR.- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -
Reply all
Reply to author
Forward
0 new messages