This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

J2ME on Leopard OSX  RSS feed

 
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • 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
  • 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
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
http://java.sun.com/javame/downloads/sdk30_mac.jsp looks like sun decided it was worth it afterall
 
What does a metric clock look like? I bet it is nothing like this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!