Forums Register Login

J2ME on Leopard OSX

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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!
+Pie Number of slices to send: Send
http://java.sun.com/javame/downloads/sdk30_mac.jsp looks like sun decided it was worth it afterall
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 4700 times.
Similar Threads
large file support
Fedora 14 - JRE Runtime error
Does Windows Vista "Play Nice" with Java?
wrong ELF class: ELFCLASS64
Installing Software (32 vs 64)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:08:33.