Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » MTJ and Java SDK 3: bullshit(bugs)
icon8.gif  MTJ and Java SDK 3: bullshit [message #541499] Mon, 21 June 2010 11:38 Go to next message
bastard_troll  is currently offline bastard_troll
Messages: 2
Registered: June 2010
Junior Member
Man, these tools are awful, specially MTJ.
I was used to eclipse ME and WTK and managed to do things, but with the new MTJ, eclipse pulsar and Java ME Platform SDK 3.0 is simply impossible.
I've received all kinds of stupid error messages and suffered from emulator misconfiguration. E.g.:
-Now you don't have CLDC 1.1. (Don't bother setting it, will be ignored)
-Jar file is corrupted
-Problems connecting to device emulator, etc.
The worst environment for Java ME programming by far. Now I'm moving to netbeans.
Next time you launch some stuff, ensure it's easy to use and user-friendly.
Re: MTJ and Java SDK 3: bullshit [message #542254 is a reply to message #541499] Thu, 24 June 2010 11:22 Go to previous messageGo to next message
Eclipse User
Originally posted by: news.s237965939.online.de

Am 21.06.2010 13:38, schrieb bastard_troll:

> -Now you don't have CLDC 1.1. (Don't bother setting it, will be ignored)
> -Jar file is corrupted
> -Problems connecting to device emulator, etc.

Same problems here. I used some classes/methods from CLDC 1.1 without
knowing, and some floating point too, but the Motorola test device only
had CLDC 1.0. Eclipse/MTJ was set up to CLDC 1.0 but the errors remained
undiscoverd. That was the cause of most other problems I described in my
earlier postings. How did I find that out? I ported the project to
NetBeans, which found the errors right away. Nuff' said.

Hans
Re: MTJ and Java SDK 3: bullshit [message #543596 is a reply to message #542254] Tue, 29 June 2010 23:36 Go to previous messageGo to next message
Gorkem Ercan is currently offline Gorkem Ercan
Messages: 166
Registered: July 2009
Senior Member
There is a problem with the WTK 3.0 integration. WTK seems to be sending information that it is not supposed to and that is confusing MTJ. You can follow up on the fix https://bugs.eclipse.org/bugs/show_bug.cgi?id=315209..

I would still like to check that your trouble with the CLDC 1.0 setting getting ignored is related to same problem. Can you tell where did you set the CLCD 1.0 ?
--
Thanks,
Gorkem
Re: MTJ and Java SDK 3: bullshit [message #543778 is a reply to message #543596] Wed, 30 June 2010 14:29 Go to previous messageGo to next message
Eclipse User
Originally posted by: news.s237965939.online.de

Am 30.06.2010 01:36, schrieb Gorkem Ercan:
> There is a problem with the WTK 3.0 integration. WTK seems to be sending
> information that it is not supposed to and that is confusing MTJ. You
> can follow up on the fix
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=315209.
> I would still like to check that your trouble with the CLDC 1.0 setting
> getting ignored is related to same problem. Can you tell where did you
> set the CLCD 1.0 ?

I tried many SDKs, different versions (Sun, Motorola, Sony Ericsson,...)
with all the same effect. No error message related to the CLDC 1.0
setting, the jar just didn't run on the real device. That made me so
angry that I deleted everything that sounded like eclipse and switched
to Netbeans. To answer your question I downloaded and installed it
again. BTW, it's still the same with the latest version of Pulsar (Helios).

The setting CLDC 1.0 was done in the 'Application Descriptor'. Try it,
insert the following code, but do something with the variable, otherwise
the line will be optimized away. 'sum' and 'cnt' are of the type int, too.

int z = (int)(15.0 - ((double) sum / (double) cnt));

It will compile with no errors, no warnings. But when you download the
..jar to a CLDC 1.0 phone, like my Motorola V3, it will crash.

Hans
Re: MTJ and Java SDK 3: bullshit [message #543820 is a reply to message #543778] Wed, 30 June 2010 16:33 Go to previous messageGo to next message
Gorkem Ercan is currently offline Gorkem Ercan
Messages: 166
Registered: July 2009
Senior Member

Thanks for this information. This was really helpful.

The problem seems like the changes made to the Application Descriptor are not reflected on the buildpath for some reason. Opened up https://bugs.eclipse.org/bugs/show_bug.cgi?id=318500 to follow up.
Re: MTJ and Java SDK 3: bullshit [message #543842 is a reply to message #543820] Wed, 30 June 2010 17:57 Go to previous messageGo to next message
Eclipse User
Originally posted by: news.s237965939.online.de

Am 30.06.2010 18:33, schrieb Gorkem Ercan:
>
> Thanks for this information. This was really helpful.
> The problem seems like the changes made to the Application Descriptor
> are not reflected on the buildpath for some reason. Opened up
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=318500 to follow up.

You're welcome. With Netbeans I also had to change this code

InputStream isLeft =
Object.class.getResourceAsStream("/arrow_left.png");
InputStream isRight =
Object.class.getResourceAsStream("/arrow_right.png");
try {
arrowLeft = Image.createImage(isLeft);
arrowRight = Image.createImage(isRight);
} catch (Exception e) {
// Do Something();
}

to this one to get rid of error messages. When CLDC was set to 1.1 the
version above compiled too, but not with 1.0. With MTJ it compiled in
both cases.

try {
Class c = Class.forName("java.lang.Object");
InputStream isLeft = c.getResourceAsStream("/arrow_left.png");
InputStream isRight = c.getResourceAsStream("/arrow_right.png");
arrowLeft = Image.createImage(isLeft);
arrowRight = Image.createImage(isRight);
} catch (ClassNotFoundException cnf) {
// Do Something();
} catch (Exception ex) {
// DoSomething();
}

Hans
Re: MTJ and Java SDK 3: bullshit [message #545833 is a reply to message #541499] Fri, 09 July 2010 10:37 Go to previous messageGo to next message
Eclipse User
Originally posted by: krischik.users.sourceforge.net

Am 21.06.2010, 13:38 Uhr, schrieb bastard_troll <a1018486@bofthew.com>:

> The worst environment for Java ME programming by far.

I thought the one before was even worse - but after using the new version
for a while I am not so sure any more. If you want to continue using
eclipse you can give maven a try. Personally I think they should scrap MTJ
and work on integrating then java me from maven into eclipse instead. It
is clear they lack the manpower to do it all them-self.

Martin

--
Martin Krischik
mailto://krischik@users.sourceforge.net
https://sourceforge.net/users/krischik
Re: MTJ and Java SDK 3: bullshit [message #546020 is a reply to message #545833] Fri, 09 July 2010 22:26 Go to previous messageGo to next message
Gorkem Ercan is currently offline Gorkem Ercan
Messages: 166
Registered: July 2009
Senior Member
I am sorry that your experience with MTJ has not been good so far. I am aware that MTJ is not perfect. There are bugs and we also have some features that are not polished enough. For example the problem that has been described in this thread occurs due to the fact that the configuration level selected on the application descriptor does not reflect to the preverifier/compiler settings by default. It needs to be set explicitly from preferences.

I am the new project lead for MTJ project. As you have pointed out when the main corporate sponsor of MTJ project suddenly left the project and MTJ had a sudden drop on contributors and lacked leadership. At this time we have no committers that are paid to work on MTJ. However. thanks to our individual committers, MTJ and Pulsar was able to make a release.

Now, I am trying to recruit new contributors to the project, and I think we will be able to announce some positive developments on that in coming weeks. Please also note that our doors are wide open to individuals who would like to make positive contributions for a better MTJ.
--
Gorkem Ercan
Re: MTJ and Java SDK 3: bullshit [message #581005 is a reply to message #542254] Tue, 29 June 2010 23:36 Go to previous messageGo to next message
Gorkem Ercan is currently offline Gorkem Ercan
Messages: 166
Registered: July 2009
Senior Member
There is a problem with the WTK 3.0 integration. WTK seems to be sending information that it is not supposed to and that is confusing MTJ. You can follow up on the fix https://bugs.eclipse.org/bugs/show_bug.cgi?id=315209.

I would still like to check that your trouble with the CLDC 1.0 setting getting ignored is related to same problem. Can you tell where did you set the CLCD 1.0 ?
--
Thanks,
Gorkem
Re: MTJ and Java SDK 3: bullshit [message #581062 is a reply to message #581005] Wed, 30 June 2010 14:29 Go to previous messageGo to next message
Eclipse User
Originally posted by: news.s237965939.online.de

Am 30.06.2010 01:36, schrieb Gorkem Ercan:
> There is a problem with the WTK 3.0 integration. WTK seems to be sending
> information that it is not supposed to and that is confusing MTJ. You
> can follow up on the fix
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=315209.
> I would still like to check that your trouble with the CLDC 1.0 setting
> getting ignored is related to same problem. Can you tell where did you
> set the CLCD 1.0 ?

I tried many SDKs, different versions (Sun, Motorola, Sony Ericsson,...)
with all the same effect. No error message related to the CLDC 1.0
setting, the jar just didn't run on the real device. That made me so
angry that I deleted everything that sounded like eclipse and switched
to Netbeans. To answer your question I downloaded and installed it
again. BTW, it's still the same with the latest version of Pulsar (Helios).

The setting CLDC 1.0 was done in the 'Application Descriptor'. Try it,
insert the following code, but do something with the variable, otherwise
the line will be optimized away. 'sum' and 'cnt' are of the type int, too.

int z = (int)(15.0 - ((double) sum / (double) cnt));

It will compile with no errors, no warnings. But when you download the
..jar to a CLDC 1.0 phone, like my Motorola V3, it will crash.

Hans
Re: MTJ and Java SDK 3: bullshit [message #581072 is a reply to message #543778] Wed, 30 June 2010 16:33 Go to previous messageGo to next message
Gorkem Ercan is currently offline Gorkem Ercan
Messages: 166
Registered: July 2009
Senior Member
Thanks for this information. This was really helpful.

The problem seems like the changes made to the Application Descriptor are not reflected on the buildpath for some reason. Opened up https://bugs.eclipse.org/bugs/show_bug.cgi?id=318500 to follow up.
Re: MTJ and Java SDK 3: bullshit [message #581098 is a reply to message #543820] Wed, 30 June 2010 17:57 Go to previous messageGo to next message
Eclipse User
Originally posted by: news.s237965939.online.de

Am 30.06.2010 18:33, schrieb Gorkem Ercan:
>
> Thanks for this information. This was really helpful.
> The problem seems like the changes made to the Application Descriptor
> are not reflected on the buildpath for some reason. Opened up
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=318500 to follow up.

You're welcome. With Netbeans I also had to change this code

InputStream isLeft =
Object.class.getResourceAsStream("/arrow_left.png");
InputStream isRight =
Object.class.getResourceAsStream("/arrow_right.png");
try {
arrowLeft = Image.createImage(isLeft);
arrowRight = Image.createImage(isRight);
} catch (Exception e) {
// Do Something();
}

to this one to get rid of error messages. When CLDC was set to 1.1 the
version above compiled too, but not with 1.0. With MTJ it compiled in
both cases.

try {
Class c = Class.forName("java.lang.Object");
InputStream isLeft = c.getResourceAsStream("/arrow_left.png");
InputStream isRight = c.getResourceAsStream("/arrow_right.png");
arrowLeft = Image.createImage(isLeft);
arrowRight = Image.createImage(isRight);
} catch (ClassNotFoundException cnf) {
// Do Something();
} catch (Exception ex) {
// DoSomething();
}

Hans
Re: MTJ and Java SDK 3: bullshit [message #581220 is a reply to message #545833] Fri, 09 July 2010 22:26 Go to previous messageGo to next message
Gorkem Ercan is currently offline Gorkem Ercan
Messages: 166
Registered: July 2009
Senior Member
I am sorry that your experience with MTJ has not been good so far. I am aware that MTJ is not perfect. There are bugs and we also have some features that are not polished enough. For example the problem that has been described in this thread occurs due to the fact that the configuration level selected on the application descriptor does not reflect to the preverifier/compiler settings by default. It needs to be set explicitly from preferences.

I am the new project lead for MTJ project. As you have pointed out when the main corporate sponsor of MTJ project suddenly left the project and MTJ had a sudden drop on contributors and lacked leadership. At this time we have no committers that are paid to work on MTJ. However. thanks to our individual committers, MTJ and Pulsar was able to make a release.

Now, I am trying to recruit new contributors to the project, and I think we will be able to announce some positive developments on that in coming weeks. Please also note that our doors are wide open to individuals who would like to make positive contributions for a better MTJ.
--
Gorkem Ercan
Re: MTJ and Java SDK 3: bullshit [message #656009 is a reply to message #541499] Wed, 23 February 2011 17:50 Go to previous message
Bernardo  is currently offline Bernardo
Messages: 5
Registered: October 2009
Junior Member
Hi!

I've been using MTJ succesfully with XP and Vista. But windows 7 (x86) + Helios 3.6.1 + java ME sdk 3 .0 keep ignoring cldc 1.1. Doesn't matter if I've set it to work with DefaultCldcJtwiPhone2. The eclipse editor doesn't allow/show the fields or methods e.g. Math.E or TestField.DECIMAL.

So, anybody face this or is working on it?

thanks
Previous Topic:CDC 1.0
Next Topic:preprocessor #include
Goto Forum:
  


Current Time: Sat Oct 25 20:54:09 GMT 2014

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

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