my dog learned polymorphism*
The moose likes Java Micro Edition and the fly likes Phone says Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Phone says "invalid application file" when running my application." Watch "Phone says "invalid application file" when running my application." New topic
Author

Phone says "invalid application file" when running my application.

Will Richardson
Greenhorn

Joined: Nov 01, 2010
Posts: 16

Hi

I've just got Java Micro Edition (WTK 2.5.2, I think) working on my Ubuntu machine. I can use the phone simulator to simulate a "Hello world" app, but once this is transferred over to my phone (http://www.dealextreme.com/details.dx/sku.44402) it says "invalid application file"

This is a slight problem, and a solution will be greatly appreciated.


Churs,
Will.
Srinath Gamage
Ranch Hand

Joined: Jun 19, 2008
Posts: 40

hey,
Reason may be that you have done your project for MIDP 2.1. But your phone may not support it.
First check it.


SCJP & SCMAD
http://srinathbugz.blogspot.com/
Will Richardson
Greenhorn

Joined: Nov 01, 2010
Posts: 16

On my phone or PC..?

There is no way to check Java version on my phone (because it is a Chinese imitation of a G5) so I don't know what version to it would support..

So where, what, and how do I check that?
Will Richardson
Greenhorn

Joined: Nov 01, 2010
Posts: 16

Mobile Information Device profile? 1.0

Hmm.. can it be too low tech?
Srinath Gamage
Ranch Hand

Joined: Jun 19, 2008
Posts: 40

okkk, that means MIDP1.0.
Yah way old tec, now it's MIDP 2.1.
In your project set MIDP version to 1.0 and rebuild.
Then it will work.
Will Richardson
Greenhorn

Joined: Nov 01, 2010
Posts: 16

Sorry, I think you have misunderstood me.. eclipse can go to 1.0 an i do not know what my phone supports..
Srinath Gamage
Ranch Hand

Joined: Jun 19, 2008
Posts: 40

Will Richardson wrote:Mobile Information Device profile? 1.0

Hmm.. can it be too low tech?



I thought you talking about your phone here.
Will Richardson
Greenhorn

Joined: Nov 01, 2010
Posts: 16

OK, so if I have no idea what my phone can run, what do I do now?
Srinath Gamage
Ranch Hand

Joined: Jun 19, 2008
Posts: 40

Create a basic application with lowest configuration, and
run following code in that and read your phone configurations.

Will Richardson
Greenhorn

Joined: Nov 01, 2010
Posts: 16

Sweet, thanks, cheers, that works. I am on 2.0..

Now to find a tutorial..
Ragupathirajan Venkatesan
Ranch Hand

Joined: Aug 18, 2010
Posts: 62
Hi Srinath,

I am new to this moile booking or application development. Please suggest me what are all the common used to technologies for this mobile iphone applications like for front jsp and middele ties spring or webservicess.. some info.. It will be greatfull for me... Thanks a lot
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Phone says "invalid application file" when running my application.
 
Similar Threads
Game for Nokia E71x
Invalid Jar File
Need to run application on phone start uo
Run one separate application from another
SCEA logo form..