Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Mobile Tools for Java (MTJ) » Missing features of MIDP 2.X/CLDC API (WTK 3.0)
Missing features of MIDP 2.X/CLDC API (WTK 3.0) [message #580528] Fri, 21 May 2010 08:12 Go to next message
Erik  is currently offline Erik Friend
Messages: 4
Registered: May 2010
Junior Member
Dear everyone,

Ive been using WTK 2.5.2 on linux for a long time, but just made the switch to OS X.

After installing J2ME WTK3.0 and eclipse I got it to work by copying out the files from the app needed by the MTJ plugin, (instructions i found on the web)

My problem now is even for CLDC 1.1/MIDP 2.0 apps it complains that Thread(String ) is not a valid constructor, and that DataOutputSteam doesnt have methods for writeDouble, writeFloat etc. (same for inputsteams when it comes to reading these types)

It links correct to the cldc 1.1 and midp 2.0 (and cldc 1.0 and midp 1.0) in the build path, but why is this not working?!

Thanks in advance!

Re: Missing features of MIDP 2.X/CLDC API (WTK 3.0) [message #580713 is a reply to message #580528] Tue, 01 June 2010 13:08 Go to previous message
Gustavo de Paula is currently offline Gustavo de PaulaFriend
Messages: 42
Registered: January 2010
the issue seems to be on the import process. current it is import both cldc jars but the 1.0 is imported before the 1.1. this cause that the DataOutStream class is found in the CLDC 1.0 jar and this class does not include a flout related methods. i just filed a bug to implement the fix.

in the meantime, a possible workaround is to go to the device management and duplicate one of the devices. after that you can just edit the device and remove the CLDC 1.0 library from it. i did this test here and it gives an exception during the project creation (not sure yet why). but i just went on after the exception (canceling teh wizard) and the project was created ok and i was able to run the midlet

Previous Topic:Missing features of MIDP 2.X/CLDC API (WTK 3.0)
Next Topic:iDEN Device problems
Goto Forum:

Current Time: Wed May 29 02:46:09 GMT 2024

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

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

Back to the top