Pocket PC Thoughts - Daily News, Views, Rants and Raves

Check out the hottest Windows Mobile devices at our Expansys store!





Go Back   Thoughts Media Forums > WINDOWS PHONE THOUGHTS > Windows Phone Talk

Reply
 
LinkBack (4) Thread Tools Display Modes
  4 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 07-01-2008, 06:09 PM
Neophyte
Join Date: Jun 2008
Posts: 5
Default Compiling Midlets on a T-Mobile Dash or other Smartphone

I've been wondering is there any way to set up a JavaME environment on a Smartphone, specifically a T-mobile Dash? Not a JavaSE environment but one that utilizes CDLC and MIDP. I have a wireless keyboard that I use with my Dash and I'm a self-labeled Gnork (Geek, Nerd, Dork) and I rarely use my Smartphone as just a Phone/PDA. I was working on an RPG and on my breaks at work or whenever I have a few minutes I pull out my Dash and edit source code. If anyone has any ideas or suggestions please let me know. Or, if this is a lost cause please let me know so I can start working on something else.

Thanks,

J
 
Reply With Quote
  #2 (permalink)  
Old 07-01-2008, 08:04 PM
Oracle
onlydarksets's Avatar
Join Date: Aug 2006
Posts: 864

How about an online compiler?
http://www.innovation.ch/java/java_compile.htm

I am not as gnork-y as you (yet I aspire), so I don't know if this, or something similar, would work.
 
Reply With Quote
  #3 (permalink)  
Old 07-07-2008, 07:08 AM
Neophyte
Join Date: Jun 2008
Posts: 5
Default Almost...

That would work but I was looking for a way to create the .jar file directly online; not a JavaSE .jar, a JavaME .jar compiled completely online on on mobile.
 
Reply With Quote
  #4 (permalink)  
Old 07-08-2008, 02:39 AM
Oracle
onlydarksets's Avatar
Join Date: Aug 2006
Posts: 864

Sorry, then - I've got nothing!
 
Reply With Quote
  #5 (permalink)  
Old 07-08-2008, 07:41 AM
Neophyte
Join Date: Jun 2008
Posts: 5
Default I got it...

Ok, I figured it out. If anyone is interested in creating a Midlet directly on your smartphone and/or Pocket PC, here's what I did.

  1. Create your .java files, resource files, and MANIFEST.MF (on your computer or on your smartphone).
  2. Use the online JXXX Compiler service (JXXX Compiler Service) or Mysaifu (http://www2s.biglobe.ne.jp/~dat/java/project/jvm/index_en.html) to compile your .java files into .class files.
  3. Use Total Commander (or equivalent file manager, with ability to pack files into a .zip archive) to create a folder called "META-INF" (without quotes).
  4. Place your MANIFEST.MF file into the "META-INF" folder.
  5. Use the pack command in Total Commander to pack all the files into a new midlet.zip file (make sure you don't create a zip with a folder holding your files, only add the files you would normally .jar archive).
  6. Rename the midlet.zip to midlet.jar.
  7. install the midlet.jar from within your favorite midlet manager.
That's what I came up with. Let me know if anyone has a faster or easier way.

 
Reply With Quote
  #6 (permalink)  
Old 09-06-2009, 09:12 PM
Join Date: Sep 2009
Posts: 1
Default complet on-board Java programming instructions for Dash and other WM5/6 smartphones

Quote:
Originally Posted by winhax View Post
Ok, I figured it out. If anyone is interested in creating a Midlet directly on your smartphone and/or Pocket PC, here's what I did.

  1. Create your .java files, resource files, and MANIFEST.MF (on your computer or on your smartphone).
  2. Use the online JXXX Compiler service (JXXX Compiler Service) or Mysaifu (http://www2s.biglobe.ne.jp/~dat/java/project/jvm/index_en.html) to compile your .java files into .class files.
  3. Use Total Commander (or equivalent file manager, with ability to pack files into a .zip archive) to create a folder called "META-INF" (without quotes).
  4. Place your MANIFEST.MF file into the "META-INF" folder.
  5. Use the pack command in Total Commander to pack all the files into a new midlet.zip file (make sure you don't create a zip with a folder holding your files, only add the files you would normally .jar archive).
  6. Rename the midlet.zip to midlet.jar.
  7. install the midlet.jar from within your favorite midlet manager.
That's what I came up with. Let me know if anyone has a faster or easier way.

This is a good start. Esmertec's JBed (included with many HTC WinMo phones) can actually run MIDlets from class files, so this recipe can be simplified. I discuss this at length in a Blog post at www.vkfox.com/wordpress titled On-Board Java Programming -- Windows Mobile Edition.

I use Mortscript scripts to launch the compiler (Kopisusu.jar running under MySaifu) and to get JBed to run compiled and preverified (via Proguard) class files. Check it out.
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://forums.thoughtsmedia.com/f396/compiling-midlets-t-mobile-dash-other-smartphone-89765.html
Posted By For Type Date
Smartphone Thoughts - Daily News, Views, Rants and Raves This thread Refback 07-17-2008 08:01 AM
Smartphone Thoughts: HTC Contracted to Make T-Mobile Shadow II! This thread Refback 07-04-2008 08:35 PM
Smartphone Thoughts: Samsung Ace (I325) This thread Refback 07-04-2008 07:54 PM
Smartphone Thoughts - Daily News, Views, Rants and Raves This thread Refback 07-03-2008 04:40 PM


All times are GMT +1. The time now is 10:39 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 RC7