Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Mobile Tools for Java (MTJ) » How to generate JAR file to run on mobile phone?
How to generate JAR file to run on mobile phone? [message #654055] Sun, 13 February 2011 18:55 Go to next message
HuaZhang  is currently offline HuaZhang Friend
Messages: 2
Registered: February 2011
Junior Member
Hi, I developed an java application using MTJ and eclipse and sun_java_wireless_toolkit-2.5.2_01-win.exe. The application run on the emulator correctly. When I generated the JAR file and downloaded JAR to mobile phone, the JAR couldn't run. I was told that the bootclasspath which is used by compiler javac should be set "d:\midp-fcs\classes" in order to change the default JAVA SE class to JAVA ME class. Is there anybody to tell me how to set the bootclasspath in eclipse IDE? Thanks.
Re: How to generate JAR file to run on mobile phone? [message #654672 is a reply to message #654055] Wed, 16 February 2011 15:48 Go to previous message
Eclipse UserFriend
Originally posted by: news.s237965939.online.de

Am 13.02.2011 19:55, schrieb HuaZhang:

> Hi, I developed an java application using MTJ and eclipse and
> sun_java_wireless_toolkit-2.5.2_01-win.exe. The application run on the
> emulator correctly. When I generated the JAR file and downloaded JAR to
> mobile phone, the JAR couldn't run

I had a similar problem quite a while ago. In my case I specified CLDC
1.0 but used features from 1.1 without knowing. MTJ didn't notice that
error, I had the same result as you describe on a CLDC 1.0 phone. After
weeks of hopeless struggling I switched the project to Netbeans which
found the error and complained straight away. I haven't used Eclipse/MTJ
ever since.

Hans
Previous Topic:How to generate JAR file which runs on mobile phone?
Next Topic:CDC 1.0
Goto Forum:
  


Current Time: Thu Sep 19 13:19:49 GMT 2024

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

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

Back to the top