• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JME Hello World

 
paul wheaton
Trailboss
Pie
Posts: 21340
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right now I'm trying to figure out how to get a java "hello world" running on this "Windows Mobile 5.0".

Any suggestions on a web page that might spell this out?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you done a google for "J2ME Hello World". Should take you there.

For the sordid details on Windows Mobile, see my reply to your post on same. Assuming that the JavaRanch server doesn't keep overloading.
 
paul wheaton
Trailboss
Pie
Posts: 21340
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google and I have been developing a deep relationship over the last 24 hours all about JME.

The stuff I've come up with so far seems to involve downloading a bunch of Micro$oft tools and cygwin. I can't help but think it has to be simpler than that.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nonononoono!!!

Microsoft, Cygwin, et al need not apply. You should be able to do stock J2ME with just the developer's kit from java.sun.com - it even includes an emulator with plugins for popular feature sets.

Some device vendors do provide their own version of the J2ME developer system, and, alas, some of them are packaged as Windows apps, but the general-purpose one from Sun has no such limitations.

They also have some tutorials you may find useful. Last time I looked, there was a jump-off point for J2ME on the http://java.sun.com home page.
[ January 11, 2008: Message edited by: Tim Holloway ]
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by paul wheaton:
Google and I have been developing a deep relationship over the last 24 hours all about JME.

The stuff I've come up with so far seems to involve downloading a bunch of Micro$oft tools and cygwin. I can't help but think it has to be simpler than that.


[deleted noise, left relevant link - GDB]

See: J2ME MIDP and WAP Complementary Technologies
[ January 14, 2008: Message edited by: Gregg Bolinger ]
 
paul wheaton
Trailboss
Pie
Posts: 21340
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The project of today cannot be done with WAP - there will be no net connection.

But there is another project I will be fiddling with in a few days that requires WAP.

....

The problem of the moment is that I cannot get my "Hello World" app to run.

There are two java files. The first is Moo.java:



The second is MooCanvas.java



Here is my ant script



here is the resulting jad file:



When I run, I get the following:

 
paul wheaton
Trailboss
Pie
Posts: 21340
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I'm still stuck. I've poked a few things around and tried to figure this out ....

Anybody see anything I'm doing wrong?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, a quick Google indicates that forgetting to preverify might do this.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops, almost forgot. I think WAP is about done for. The device you've been describing almost certainly runs Pocket Internet Explorer. And while PIE isn't up to fancy Flash or JavaScript tricks, you do feed it HTML.

It's just HTML formatted for a 320x240 screen or thereabouts.
 
paul wheaton
Trailboss
Pie
Posts: 21340
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tim Holloway:
Well, a quick Google indicates that forgetting to preverify might do this.


That worked!

Well, preverify-ing worked. "quick Google" didn't.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic