• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

J2ME on Leopard OSX

 
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to run a J2ME app on Leopard
I downloaded the latest WTK 2.5.2 from Sun, and installed it using Java 1.5.

I get the following error -

java.lang.UnsatisfiedLinkError: /Users/sonny/Developer/j2me/WTK2.5.2/bin/sublime.so:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
<snip>
at com.sun.kvem.environment.JVM.main(JVM.java:103)

From a bit of googling around, it seems that the problem is that Java on Leopard is 64 bit, but J2ME requires 32 bit Java.
Is this true?
Most of the links I found address this problem on Linux, and recommend installing 32 bit Java for J2ME work.
I am thinking of switching to Ubuntu running in a virtual machine for this task. Is there a way to avoid that?
I'd much rather do all my development inside the Mac.

Cheers,
Sonny
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sonny Gill wrote:Hi,

I am trying to run a J2ME app on Leopard
I downloaded the latest WTK 2.5.2 from Sun, and installed it using Java 1.5.

I get the following error -

java.lang.UnsatisfiedLinkError: /Users/sonny/Developer/j2me/WTK2.5.2/bin/sublime.so:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
<snip>
at com.sun.kvem.environment.JVM.main(JVM.java:103)

From a bit of googling around, it seems that the problem is that Java on Leopard is 64 bit, but J2ME requires 32 bit Java.
Is this true?
Most of the links I found address this problem on Linux, and recommend installing 32 bit Java for J2ME work.
I am thinking of switching to Ubuntu running in a virtual machine for this task. Is there a way to avoid that?
I'd much rather do all my development inside the Mac.

Cheers,
Sonny



I'm having the same problem... Any luck getting it to work? I saw somewhere that the Motorola Java SDK works on the Mac, so maybe it's possible to install that and import those devices, and run on that.. Or perhaps run on the MicroEmu?
 
Sonny Gill
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No. I decided to go with Linux running in a VMWare virtual machine for J2ME work.
It is very rare that I need to work on J2ME, so this was easier.
If you do get it running on Mac, I hope you can share your experience here.
 
Todd Miller
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sonny Gill wrote:No. I decided to go with Linux running in a VMWare virtual machine for J2ME work.
It is very rare that I need to work on J2ME, so this was easier.
If you do get it running on Mac, I hope you can share your experience here.



I was able to run the MOTODEV J2ME SDK on the Mac. They actually have a Mac version, and I was able to import the devices in Eclipse MTJ without any problem. I also tried MicroEmu, which would launch but threw exceptions when actually trying to start my MIDlet. I probably could have gotten it to work with a little more playing around, but that emulator doesn't support all the features I need to work with anyways, so I gave up on it.

Still no luck on the Sun WTK emulator though. I googled for over an hour yesterday trying to find some advice, but nothing came up. I'm able to get the ktoolbar to run via the command line, and can get the emulator to at least show me the command line help via terminal window, so it seems like it should work in the IDE too. If anyone has any luck, please post a solution!
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://java.sun.com/javame/downloads/sdk30_mac.jsp looks like sun decided it was worth it afterall
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic