aspose file tools*
The moose likes Mac OS and the fly likes J2ME on Leopard OSX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "J2ME on Leopard OSX" Watch "J2ME on Leopard OSX" New topic
Author

J2ME on Leopard OSX

Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

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


The future is here. It's just not evenly distributed yet. - William Gibson
Consultant @ Xebia. Sonny Gill Tweets
Todd Miller
Greenhorn

Joined: Feb 27, 2009
Posts: 2
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

Joined: Feb 02, 2002
Posts: 1211

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

Joined: Feb 27, 2009
Posts: 2
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!
Daniel Murphy
Greenhorn

Joined: Oct 28, 2009
Posts: 1
http://java.sun.com/javame/downloads/sdk30_mac.jsp looks like sun decided it was worth it afterall
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2ME on Leopard OSX