Skip to main content

Blackberry & LWUIT -- still able to step debug via JDE?

16 replies [Last post]
perkmobile_pn
Offline
Joined: 2008-06-27
Points: 0

Regarding the Blackberry issue/temp-resolution discussed previously ( http://forums.java.net/jive/thread.jspa?messageID=278740&#278740 ) is it possible to still step debug Blackberry apps using LWUIT via JDE?

Wouldn't the recommended fix (obfuscation) of the MIDlet would prevent proper debugging?

Thanks,
Pete

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Bill Snyder

The jar should be readable by most zip programs. If not, just rename it to a
.zip file , extract it, remove the files, and then re-zip it up. And rename
it back to a .jar.

Not trying to hijack the thread guys, but I am also trying to get LWUIT
working on a Blackberry. Perhaps we can work together :) So far, I just get
verification errors when running on the simulator through NetBeans.

Pete - what version of the JDE are you developing against?

--Bill

On Sat, Jun 28, 2008 at 9:18 AM, wrote:

> > just use winzip/7zip etc.. to delete the file from
> > the zip file.
>
> Sorry to keep continuing this conversation, but what do you mean by "delete
> the file from the zip file"? What "zip file" do you refer to?
>
> I ask because under project Downloads, LWUIT only provides a zip which
> contains: LWUIT Library as a JAR file, documentation, and sample code for
> LWUITDemo (but not the underlying library source).
>
> Is there another download that offers the full source? Or are you referring
> to the Early Access Binary download (which i mentioned above)? If so, my
> download does not contain source code for the library.
>
> Please let me know.
>
> Cheers,
> Pete
> [Message sent by forum member 'perkmobile_pn' (perkmobile_pn)]
>
> http://forums.java.net/jive/thread.jspa?messageID=283101
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
[att1.html]

Shai Almog

Hi Bill,
please feel free to jump in whenever you want ;-)

We found that some of the verification errors and warnings aren't
critical and that sometimes build succeeds despite lots of scary (and
irrelevant) errors.
If you can post the verification errors you are getting we can try
and figure them out together.

We have had issues with BB partially because their devices are very
hard to purchase/activate in these regions. We were, able to deploy
to BB during the J1 timeframe although this ended up being a matter
of luck. I talked with the BB team at J1 but they seemed very
unresponsive in comparison to pretty much every other company we
talked to, any suggestion I made was answered with a nod and a shrug
of "thats how it is write a RIMLet".

Thanks,
Shai.

> The jar should be readable by most zip programs. If not, just
> rename it to a .zip file , extract it, remove the files, and then
> re-zip it up. And rename it back to a .jar.
>
> Not trying to hijack the thread guys, but I am also trying to get
> LWUIT working on a Blackberry. Perhaps we can work together :) So
> far, I just get verification errors when running on the simulator
> through NetBeans.
>
> Pete - what version of the JDE are you developing against?
>
> --Bill
>
> On Sat, Jun 28, 2008 at 9:18 AM, > users@mobileandembedded.org> wrote:
> > just use winzip/7zip etc.. to delete the file from
> > the zip file.
>
> Sorry to keep continuing this conversation, but what do you mean by
> "delete the file from the zip file"? What "zip file" do you refer to?
>
> I ask because under project Downloads, LWUIT only provides a zip
> which contains: LWUIT Library as a JAR file, documentation, and
> sample code for LWUITDemo (but not the underlying library source).
>
> Is there another download that offers the full source? Or are you
> referring to the Early Access Binary download (which i mentioned
> above)? If so, my download does not contain source code for the
> library.
>
> Please let me know.
>
> Cheers,
> Pete
> [Message sent by forum member 'perkmobile_pn' (perkmobile_pn)]
>
> http://forums.java.net/jive/thread.jspa?messageID=283101
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

[att1.html]

Bill Snyder

That's too bad about the response from BB. I am excited about the
possibilities of LWUIT on the BB.

I am able to build the LWUI demo project successfully, with no verification
errors. However, when I go to launch the MIDlet on the simulator, I get the
message 'LWUITDemo has verification errors.' Nothing specific, so I need to
track it down. This is on JDE 4.3.

--Bill

On Sat, Jun 28, 2008 at 1:26 PM, Shai Almog wrote:

> Hi Bill,
> please feel free to jump in whenever you want ;-)
>
> We found that some of the verification errors and warnings aren't critical
> and that sometimes build succeeds despite lots of scary (and irrelevant)
> errors.
> If you can post the verification errors you are getting we can try and
> figure them out together.
>
> We have had issues with BB partially because their devices are very hard to
> purchase/activate in these regions. We were, able to deploy to BB during the
> J1 timeframe although this ended up being a matter of luck. I talked with
> the BB team at J1 but they seemed very unresponsive in comparison to pretty
> much every other company we talked to, any suggestion I made was answered
> with a nod and a shrug of "thats how it is write a RIMLet".
>
> Thanks,
> Shai.
>
> The jar should be readable by most zip programs. If not, just rename it to
> a .zip file , extract it, remove the files, and then re-zip it up. And
> rename it back to a .jar.
>
> Not trying to hijack the thread guys, but I am also trying to get LWUIT
> working on a Blackberry. Perhaps we can work together :) So far, I just get
> verification errors when running on the simulator through NetBeans.
>
> Pete - what version of the JDE are you developing against?
>
> --Bill
>
> On Sat, Jun 28, 2008 at 9:18 AM,
> wrote:
>
>> > just use winzip/7zip etc.. to delete the file from
>> > the zip file.
>>
>> Sorry to keep continuing this conversation, but what do you mean by
>> "delete the file from the zip file"? What "zip file" do you refer to?
>>
>> I ask because under project Downloads, LWUIT only provides a zip which
>> contains: LWUIT Library as a JAR file, documentation, and sample code for
>> LWUITDemo (but not the underlying library source).
>>
>> Is there another download that offers the full source? Or are you
>> referring to the Early Access Binary download (which i mentioned above)? If
>> so, my download does not contain source code for the library.
>>
>> Please let me know.
>>
>> Cheers,
>> Pete
>> [Message sent by forum member 'perkmobile_pn' (perkmobile_pn)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=283101
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>> For additional commands, e-mail: users-help@lwuit.dev.java.net
>>
>>
>
>
[att1.html]

Shai Almog

Does your build process include the verification step we mentioned in
the guide?
Are you packaging for BB or using the jad/jar?

The response I got was from a couple of representatives and might not
be indicative of the mindset at RIM itself, I assume that if they get
interest from developers they would want to help us make LWUIT work
better on their devices.

Thanks,
Shai.

> That's too bad about the response from BB. I am excited about the
> possibilities of LWUIT on the BB.
>
> I am able to build the LWUI demo project successfully, with no
> verification errors. However, when I go to launch the MIDlet on the
> simulator, I get the message 'LWUITDemo has verification errors.'
> Nothing specific, so I need to track it down. This is on JDE 4.3.
>
>
>
> --Bill
>
> On Sat, Jun 28, 2008 at 1:26 PM, Shai Almog
> wrote:
> Hi Bill,
> please feel free to jump in whenever you want ;-)
>
> We found that some of the verification errors and warnings aren't
> critical and that sometimes build succeeds despite lots of scary
> (and irrelevant) errors.
> If you can post the verification errors you are getting we can try
> and figure them out together.
>
> We have had issues with BB partially because their devices are very
> hard to purchase/activate in these regions. We were, able to deploy
> to BB during the J1 timeframe although this ended up being a matter
> of luck. I talked with the BB team at J1 but they seemed very
> unresponsive in comparison to pretty much every other company we
> talked to, any suggestion I made was answered with a nod and a
> shrug of "thats how it is write a RIMLet".
>
> Thanks,
> Shai.
>
>> The jar should be readable by most zip programs. If not, just
>> rename it to a .zip file , extract it, remove the files, and then
>> re-zip it up. And rename it back to a .jar.
>>
>> Not trying to hijack the thread guys, but I am also trying to get
>> LWUIT working on a Blackberry. Perhaps we can work together :) So
>> far, I just get verification errors when running on the simulator
>> through NetBeans.
>>
>> Pete - what version of the JDE are you developing against?
>>
>> --Bill
>>
>> On Sat, Jun 28, 2008 at 9:18 AM, >> users@mobileandembedded.org> wrote:
>> > just use winzip/7zip etc.. to delete the file from
>> > the zip file.
>>
>> Sorry to keep continuing this conversation, but what do you mean
>> by "delete the file from the zip file"? What "zip file" do you
>> refer to?
>>
>> I ask because under project Downloads, LWUIT only provides a zip
>> which contains: LWUIT Library as a JAR file, documentation, and
>> sample code for LWUITDemo (but not the underlying library source).
>>
>> Is there another download that offers the full source? Or are you
>> referring to the Early Access Binary download (which i mentioned
>> above)? If so, my download does not contain source code for the
>> library.
>>
>> Please let me know.
>>
>> Cheers,
>> Pete
>> [Message sent by forum member 'perkmobile_pn' (perkmobile_pn)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=283101
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>> For additional commands, e-mail: users-help@lwuit.dev.java.net
>>
>>
>
>

[att1.html]

Bill Snyder

Hmm. What step is that? I must have missing something. The only part about
BB I saw in the guide was section 14.6.2.

On Sat, Jun 28, 2008 at 2:51 PM, Shai Almog wrote:

> Does your build process include the verification step we mentioned in the
> guide?
> Are you packaging for BB or using the jad/jar?
>
> The response I got was from a couple of representatives and might not be
> indicative of the mindset at RIM itself, I assume that if they get interest
> from developers they would want to help us make LWUIT work better on their
> devices.
>
> Thanks,
> Shai.
>
> That's too bad about the response from BB. I am excited about the
> possibilities of LWUIT on the BB.
>
> I am able to build the LWUI demo project successfully, with no verification
> errors. However, when I go to launch the MIDlet on the simulator, I get the
> message 'LWUITDemo has verification errors.' Nothing specific, so I need to
> track it down. This is on JDE 4.3.
>
>
>
> --Bill
>
> On Sat, Jun 28, 2008 at 1:26 PM, Shai Almog wrote:
>
>> Hi Bill,
>> please feel free to jump in whenever you want ;-)
>>
>> We found that some of the verification errors and warnings aren't critical
>> and that sometimes build succeeds despite lots of scary (and irrelevant)
>> errors.
>> If you can post the verification errors you are getting we can try and
>> figure them out together.
>>
>> We have had issues with BB partially because their devices are very hard
>> to purchase/activate in these regions. We were, able to deploy to BB during
>> the J1 timeframe although this ended up being a matter of luck. I talked
>> with the BB team at J1 but they seemed very unresponsive in comparison to
>> pretty much every other company we talked to, any suggestion I made was
>> answered with a nod and a shrug of "thats how it is write a RIMLet".
>>
>> Thanks,
>> Shai.
>>
>> The jar should be readable by most zip programs. If not, just rename it to
>> a .zip file , extract it, remove the files, and then re-zip it up. And
>> rename it back to a .jar.
>>
>> Not trying to hijack the thread guys, but I am also trying to get LWUIT
>> working on a Blackberry. Perhaps we can work together :) So far, I just get
>> verification errors when running on the simulator through NetBeans.
>>
>> Pete - what version of the JDE are you developing against?
>>
>> --Bill
>>
>> On Sat, Jun 28, 2008 at 9:18 AM,
>> wrote:
>>
>>> > just use winzip/7zip etc.. to delete the file from
>>> > the zip file.
>>>
>>> Sorry to keep continuing this conversation, but what do you mean by
>>> "delete the file from the zip file"? What "zip file" do you refer to?
>>>
>>> I ask because under project Downloads, LWUIT only provides a zip which
>>> contains: LWUIT Library as a JAR file, documentation, and sample code for
>>> LWUITDemo (but not the underlying library source).
>>>
>>> Is there another download that offers the full source? Or are you
>>> referring to the Early Access Binary download (which i mentioned above)? If
>>> so, my download does not contain source code for the library.
>>>
>>> Please let me know.
>>>
>>> Cheers,
>>> Pete
>>> [Message sent by forum member 'perkmobile_pn' (perkmobile_pn)]
>>>
>>> http://forums.java.net/jive/thread.jspa?messageID=283101
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>>> For additional commands, e-mail: users-help@lwuit.dev.java.net
>>>
>>>
>>
>>
>
>
[att1.html]

Shai Almog

Sorry my recollection is a bit hazy and Chen did most of the BB work ;-)
There is a step of packaging where you generate BB specific cab files
for deployment, I don't recall the instructions but it should be
relatively easy with the IDE.
Are you generating such files?
When doing that do you get verification errors?

Thanks.

> Hmm. What step is that? I must have missing something. The only
> part about BB I saw in the guide was section 14.6.2.

[att1.html]

Bill Snyder

Yes, I am creating the COD files. Its after that is created and loaded that
a generic verification error.

On Sat, Jun 28, 2008 at 3:21 PM, Shai Almog wrote:

> Sorry my recollection is a bit hazy and Chen did most of the BB work ;-)
> There is a step of packaging where you generate BB specific cab files for
> deployment, I don't recall the instructions but it should be relatively easy
> with the IDE.
> Are you generating such files?
> When doing that do you get verification errors?
>
> Thanks.
>
> Hmm. What step is that? I must have missing something. The only part about
> BB I saw in the guide was section 14.6.2.
>
>
>
[att1.html]

perkmobile_pn
Offline
Joined: 2008-06-27
Points: 0

hey bill, have you made any progress since?

Bill Snyder

No.
I will get back to tackling it this week. I've got an BB app that *needs*
this.

--Bill

On Sun, Jun 29, 2008 at 10:37 PM, wrote:

> hey bill, have you made any progress since?
> [Message sent by forum member 'perkmobile_pn' (perkmobile_pn)]
>
> http://forums.java.net/jive/thread.jspa?messageID=283235
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
[att1.html]

perkmobile_pn
Offline
Joined: 2008-06-27
Points: 0

I'm in the same boat, email me at peter@perkmobile.com if you'd like to work together on just getting LWUIT to work on BB.

Bill Snyder

I just unzipped the jar, removed the classes and rezipped it. (Sorry to butt
in...).

Shai -
How would this affect the licensing of the ea binary? Would it still be
considered under the SLA?

--Bill

On Fri, Jun 27, 2008 at 3:47 AM, Shai Almog wrote:

> Hi,
> The fix is intended to workaround issues with blackberry compliance to the
> Java VM specification regarding classloading. An alternative solution is to
> simply delete the offending class (Transition3D) from our jar file before
> building the version to the blackberry and running as usual.
>
> Thanks,
> Shai.
>
>
> Regarding the Blackberry issue/temp-resolution discussed previously (
>> http://forums.java.net/jive/thread.jspa?messageID=278740&#278740 ) is it
>> possible to still step debug Blackberry apps using LWUIT via JDE?
>>
>> Wouldn't the recommended fix (obfuscation) of the MIDlet would prevent
>> proper debugging?
>>
>> Thanks,
>> Pete
>> [Message sent by forum member 'perkmobile_pn' (perkmobile_pn)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=282911
>>
>> ---------------------------------------------------------------------
>> 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
>
>
[att1.html]

Shai Almog

Hi,
The fix is intended to workaround issues with blackberry compliance
to the Java VM specification regarding classloading. An alternative
solution is to simply delete the offending class (Transition3D) from
our jar file before building the version to the blackberry and
running as usual.

Thanks,
Shai.

> Regarding the Blackberry issue/temp-resolution discussed previously
> ( http://forums.java.net/jive/thread.jspa?
> messageID=278740񄃔 ) is it possible to still step debug
> Blackberry apps using LWUIT via JDE?
>
> Wouldn't the recommended fix (obfuscation) of the MIDlet would
> prevent proper debugging?
>
> Thanks,
> Pete
> [Message sent by forum member 'perkmobile_pn' (perkmobile_pn)]
>
> http://forums.java.net/jive/thread.jspa?messageID=282911
>
> ---------------------------------------------------------------------
> 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

perkmobile_pn
Offline
Joined: 2008-06-27
Points: 0

Hi Shai,

> An alternative solution is to simply delete the offending class
> (Transition3D) from our jar file before building the version to the
> blackberry and running as usual.

This sounds great! But how can I do this? Should I decompile and recompile the LWUIT jar?

Thanks again.

Cheers,
Pete

Shai Almog

Hi Pete,
just use winzip/7zip etc.. to delete the file from the zip file.

Thanks,
Shai.

> Hi Shai,
>
>> An alternative solution is to simply delete the offending class
>> (Transition3D) from our jar file before building the version to the
>> blackberry and running as usual.
>
> This sounds great! But how can I do this? Should I decompile and
> recompile the LWUIT jar?
>
> Thanks again.
>
> Cheers,
> Pete
> [Message sent by forum member 'perkmobile_pn' (perkmobile_pn)]
>
> http://forums.java.net/jive/thread.jspa?messageID=282954
>
> ---------------------------------------------------------------------
> 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

perkmobile_pn
Offline
Joined: 2008-06-27
Points: 0

> just use winzip/7zip etc.. to delete the file from
> the zip file.

Sorry to keep continuing this conversation, but what do you mean by "delete the file from the zip file"? What "zip file" do you refer to?

I ask because under project Downloads, LWUIT only provides a zip which contains: LWUIT Library as a JAR file, documentation, and sample code for LWUITDemo (but not the underlying library source).

Is there another download that offers the full source? Or are you referring to the Early Access Binary download (which i mentioned above)? If so, my download does not contain source code for the library.

Please let me know.

Cheers,
Pete

Shai Almog

Hi Pete,
jar file is just a renamed zip file (with a manifest but thats not a
problem).

Shai.

>> just use winzip/7zip etc.. to delete the file from
>> the zip file.
>
> Sorry to keep continuing this conversation, but what do you mean by
> "delete the file from the zip file"? What "zip file" do you refer to?
>
> I ask because under project Downloads, LWUIT only provides a zip
> which contains: LWUIT Library as a JAR file, documentation, and
> sample code for LWUITDemo (but not the underlying library source).
>
> Is there another download that offers the full source? Or are you
> referring to the Early Access Binary download (which i mentioned
> above)? If so, my download does not contain source code for the
> library.
>
> Please let me know.
>
> Cheers,
> Pete
> [Message sent by forum member 'perkmobile_pn' (perkmobile_pn)]
>
> http://forums.java.net/jive/thread.jspa?messageID=283101
>
> ---------------------------------------------------------------------
> 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