• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JME Hello World

 
Trailboss
Posts: 23778
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 23778
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 23778
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 23778
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, a quick Google indicates that forgetting to preverify might do this.
 
Tim Holloway
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 23778
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic