Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » DataOutputStream.writeFloat
DataOutputStream.writeFloat [message #578076] Fri, 23 October 2009 12:54 Go to next message
mediamana  is currently offline mediamana Friend
Messages: 4
Registered: October 2009
Junior Member

I'm using sun java me sdk 3.0, defaultcldcmsaphone1 emulator and CLDC 1.1 in the application descriptor.

In my project i can't have access to the writeFloat function.
If i try directly on sun platform i can access to it so the function is present in cldc 1.1 jar but in eclipse i can't access to it.

Thanks for your help
Re: DataOutputStream.writeFloat [message #578105 is a reply to message #578076] Fri, 23 October 2009 13:24 Go to previous message
mediamana  is currently offline mediamana Friend
Messages: 4
Registered: October 2009
Junior Member
Sorry for the post, it's the same problem than

Eclipse User wrote on Tue, 25 August 2009 18:27
> Originally posted by:
> Hi everyone,
> I am trying to run a simple J2ME program that I found online. I loaded it
> as a project, but still could not get it to compile. There are quite a few
> preverifier errors, but I think I have diagnosed the main source of the
> problem (which, I believe, will fix the preverifier errors too). It should
> be a simple configuration issue, but I need your help in order to find
> what's going on!
> At some point in the code, there is a reference to Math.abs(float).
> Eclipse marks this as an error, saying that "abs(int) is not applicable to
> abs(float)." Looking at the documentation below, I noticed that the
> overloaded version was introduced in CLDC 1.1:
> th.html#abs(float)
> It seemed that the reason why Eclipse was complaining is because it was
> using CLDC 1.0 and not 1.1. When I expand the "Java ME Library" under the
> project explorer, I can see that both cldc_1.0.jar and cldc_1.1.jar are
> there. When I look at the project properties, the current active
> configuration ("DefaultCldcMsaPhone2") does support CLDC1.1.
> I have no idea what is happening, and would appreciate any help!
> Thanks,
> Berk

So the same solution work :blush:
Previous Topic:MJT or EclipseME won't uninstall
Next Topic:Debugging problem with MTJ
Goto Forum:

Current Time: Fri Feb 26 05:04:44 GMT 2021

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

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

Back to the top