This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ERROR: floating-point arguments should not appear in MIDlet pre-verification

 
Jane Joseph
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to exeute a MIDlet which test the functionality of the HttpConnection interface. The code is Listing 7.1 in http://www.scmadbook.com/index.php/Ch07_code.

The code compiles fine, but gives the following pre-verification error-

Preverifying 2 file(s) into E:\NetBeansProjects\WorldConnections\build\preverified directory.
[color=red]Error preverifying class java.lang.String



ERROR: floating-point arguments should not appear
E:\NetBeansProjects\WorldConnections\nbproject\build-impl.xml:431: Preverification failed with error code 1.[/color]


Using NetBeans IDE v6.5 . Please help.

Regards,



 
Jane Joseph
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Issue fixed when I changed the Device configuration to CDLC1.1. The Device configuration value has become 1.0 when I had chosen a particular emulator.

Thanks,
 
Sathya Srinivasan
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jane,

Glad you could fix the problem. We will post some more guidance on compiling and running the code soon on the website, hopefully sooner than later.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!