aspose file tools*
The moose likes Java Micro Edition and the fly likes JME Hello World Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "JME Hello World" Watch "JME Hello World" New topic
Author

JME Hello World

paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20693
    ∞

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?


permaculture Wood Burning Stoves 2.0 - 4-DVD set
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20693
    ∞

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

Joined: Jun 25, 2001
Posts: 16250
    
  21

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

Joined: Sep 17, 2006
Posts: 1282
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 ]

"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20693
    ∞

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

Joined: Dec 14, 1998
Posts: 20693
    ∞

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

Joined: Jun 25, 2001
Posts: 16250
    
  21

Well, a quick Google indicates that forgetting to preverify might do this.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

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

Joined: Dec 14, 1998
Posts: 20693
    ∞

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JME Hello World