Apr 7, 2010

How to Set Up Java ME on Mac: A way to do it.

Hi all,

Since January, I have switched from my old HP Pavilion (WinXP) to a brand new MacBook Pro (Mac OS X). Such as people use to say on the Internet: I am switcher. I particularly have no issues with Windows. My decision to switch to a Mac was just a matter of learning a new platform.

Anyway, this post is not about my experience on this new platform as a user. In fact, I would to to share with you my experience on how to get Java ME up and running on Mac.

To be honest, set up Java ME on Mac is not a difficult task to accomplish, since now we have an official Mac support by Sun Microsystems, regarding Java ME Platform SDK 3. As a matter of fact, the process is equal to the one performed on Windows, for instance. That said, your first step is to download the SDK from Sun's website and then install it in your "Applications" folder.

Get it done and now you have to download Eclipse IDE and EclipseME plugin. You can download both separately or opt for downloading Eclipse Pulsar. Eclipse Pulsar is a distribution of Eclipse targeted for mobile Java development which contains already comes with EclipseME pre-installed.

Once you have Eclipse and EclipseME installed, now it is time to configure some parameters. The first step is to assign the SDK (former WTK) path on EclipseME. Go to menu Eclipse > Preferences > Java ME and enter path "/Applications/Java_ME_SDK_3.0.app/Contents/Resources" in the field "WTK Root". The second step is to import the emulators from Java SDK directory into EclipseME. To do it, go to menu Eclipse > Preferences > Java ME > Device Management and press the button "Import". In the field "Specify search directory",  enter the same path as "WTK Root" field. Now, press "Refresh" button and the plugin will search for all the emulators. As soon as this search completes with some result, press "Finish". For more detailed and advanced configurations on EclipseME, check at http://eclipseme.org/docs/configuring.html. To conclude, close the "Preferences" window, by pressing "OK".

Now that you have the environment installed and configured, let's get a sample application running. To do it, you will have to create a simple MIDlet. For instance, create the "Hello, Mac World!" MIDlet, which displays the text "Hello, Mac World!". Considering you have created the file HelloMacWorldMIDlet.java, now let's run the MIDlet. Control + Click on MIDlet file, navigate to menu Run As > Emulated Java ME MIDlet. That's it! Now you have a MIDlet up and running on a Mac. Congratulations!!!

Did you think it was a tough mission, didn't you?


I hope you have enjoyed this micro tutorial. Any doubt, comment here!

See you in the next post...

92 comments:

Ernani Joppert said...

I am having issues with String class it wont recognize the overloaded methor valueOf(double), it always complains about only seeing valueOf(char)....can't make it compile for some reason

Reimar Twelker said...

I had the same problem with Math.PI and others...

It seems that Eclipse loads the libraries for CLDC 1.0 (no floating point support) before CLDC 1.1 and ignores the latter.

Go to your project properties -> java build path -> libraries and add the external CLDC 1.1 library. Next, go to the order and export tab and move the CLDC 1.1 library to the top of the list or at least above the Java ME SDK 3.0 libs.

This should make String.valueOf(double) etc. available.

Cheers, Reimar

Reimar Twelker said...

Instead of using the work-around above, you can go to the J2ME settings -> device management and select the device you would like to use, e.g. "DefaultCldcPhone1". Then, in the "Edit" window of the device, go to the libraries tab. On my system, the files cldc_1.0.jar and cldc_1.1.jar are at the top of the list. Interesting: the "APIs" columns of both files read "CDLC-1.1" which can t be right... anyway, removing the cldc_1.0.jar from the list solves the problem.

Unknown said...

Wonderful blog & good post.Its really helpful for me, awaiting for more new post. Keep Blogging!..Thanks for sharing this wonderful blog..

JAVA J2EE Training in Chennai

JAVA Training in Chennai said...

recently, i bought a mac air laptop and tried to install java. You article me helped me a lot in setting Java environment on my Mac system.

Unknown said...


Thanks for sharing your view to our knowledge’s, its helps me plenty keep sharing…
JAVA Training in Chennai

Anonymous said...

SAP stands for Systems Applications and Products in Data Processing. SAP is one of the leading ERP software in the world. SAP Training Institute in Chennai .
SAP has been widely used by large to very large organizations and also by SMEs to manage their business processes.

Anonymous said...

The SAS system is a powerful software program designed to give researchers a wide variety of both data management and data analysis capabilities. SAS Training in Chennai Although SAS has millions of users worldwide.

Unknown said...

The great and valuable information are here.It is very easy to tell about overall performance.I like this article so much. Thank You.
PHP Training in chennai | PHP Training chennai | PHP course in chennai | PHP course chennai

Naren said...

Hello,

I have tried the same procedure , but at last step "Run As > Emulated Java ME MIDlet. That's it! Now you have a MIDlet up and running on a Mac."

At my mac the emulator is not opened , it show some message in console as below . Please help me.

Naren said...

Syntax: emulator [arguments] In order to get commands supported by given device run: emulator.exe -Xdevice:<device name> -Xquery Generic list of arguments is: -version Display version information about the emulator -help Display list of valid arguments -classpath, -cp The class path for the VM -D<name>=<value> Set a system property -Xdebug Use a remote debugger -Xrunjdwp:[transport=<transport>,address=<address>,server=<y/n> suspend=<y/n>] Debugging options -Xdevice:<device> Select a device skin for the emulator -Xdomain:<domain_name> Set the MIDlet suite's security domain -Xdescriptor:<JAD file name> The JAD file to be executed -Xjam[:install=<JAD file url> | force | list | storageNames | run=[<storage name> | <storage number>] | remove=[<storage name> | <storage number> | all]] Java Application Manager and support for Over The Air provisioning (OTA) -Xquery Print device information -Xautotest:<JAD file url> Run in autotest mode

Unknown said...

Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.

sas training in Chennai | sas training institute in Chennai

Unknown said...

The information you have given here are most worthy for me. I have implemented in my training program as well, thanks for sharing.

Hadoop Training Chennai
Hadoop Training in Chennai

Rashmi D'souza said...

This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..

Perl training in chennai

Anonymous said...

Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
Regards,

Regards,
CCNA Training in Chennai | CCNA Training Institute in Chennai | Best CCNA Training in Chennai

Unknown said...

SAP UI5 Online Training

Unknown said...

IVR Plugin is a powerful IVR software for interactive voice response, voicemail & call attendant phone systems so please visit site

Nandhini said...

The strategy you have posted on this technology helped me to get into the next level and had lot of information in it. The angular js programming language is very popular which are most widely used.
Angularjs Training in Chennai | Angularjs training Chennai

Unknown said...

It is important to note that Java ME SDK 3.0 for Mac OS requires Java 1.6. Make sure 1.6 is set as the default runtime in Java Preferences.

sonali said...

Thank you !! Amazing Write Up !!
Robotics training in chennai
Php training in chennai
Ieee electrical projects in chennai
Final year java projects chennai
Digital marketing company in chennai
Chennai to Tirupati Package cheap and best travels
Chennai car rental outstation


Salman said...

Thank you !! Very usefull !!
vb dot net training in chennai
csharp training in chennai

Salman said...

Thank you !! Very usefull !!
vb dot net training in chennai
csharp training in chennai

Unknown said...

Wonderful your lessons are. Very Nice Blog, I like this Blog thanks for sharing this blog , I have got lots of information from u.Dotnet developer

kevingeorge said...

Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.



Amazon Web Services Training in Chennai

Best Java Training Institute Chennai





Anonymous said...

very good. java script training in chennai

ravinna said...

You are sharing good information.

Matlab Training in Chennai | Matlab Training Institute in Chennai

nilashri said...

Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.

Data Science Training in Chennai
Data science training in bangalore
Data science online training
Data science training in pune
Data science training in kalyan nagar

nilashri said...

Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
Devops training in Chennai
Devops training in Bangalore
Devops Online training
Devops training in Pune

simbu said...

Thanks for your informative article, Your post helped me to understand the future and career prospects & Keep on updating your blog with such awesome article.

java training in chennai | java training in bangalore

java online training | java training in pune

selenium training in chennai

selenium training in bangalore

ganga said...


Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.

angularjs Training in bangalore

angularjs Training in btm

angularjs Training in electronic-city

angularjs Training in online

angularjs Training in marathahalli

sweety ganga said...


Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.

angularjs Training in bangalore

angularjs Training in electronic-city

angularjs Training in online

angularjs Training in marathahalli

rohil said...

Great post and informative blog.it was awesome to read, thanks for sharing this great content to my vision.
Good discussion.
PMP Training Course in Bangalore
PMP Training Course in Dammam
PMP Training Course in Dubai
PMP Training Course in Jeddah
PMP Training Course in Riyadh
Get trained by an expert who will enrich you with the latest trends.

mathimathi said...

just love the good work you are doing.
PHP Training in Chennai |
PHP Course in Chennai |
PHP Training Institute in Chennai

mathimathi said...

This was a good suggestion that you put up here.hope that it benefits all the ones who land up here.
German Language Classes in Chenna |
German Classes in Chennnai |
German Courses in Chennai

Mirnalini Sathya said...

An interesting topic with great examples, keep updating your knowledge with us.
Selenium Training in Chennai
Best Selenium Training Institute in Chennai
ios developer training in chennai
Best ios Training institute in Chennai
Android Classes in Chennai
App development course in chennai

Shadeep Shree said...

The blog which you have shared is more useful for us. Thanks for your information.
German Language Course
German Courses in Coimbatore
German Courses Near Me
Learn German Course
German Language Training

Vicky Ram said...

This blog is very much helpful to us. Thanks for your information

Education
Technology

Anonymous said...

Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
angularjs online Training

angularjs Training in marathahalli

angularjs interview questions and answers

angularjs Training in bangalore

angularjs Training in bangalore

angularjs online Training

Unknown said...

Thank you for allowing me to read it, welcome to the next in a recent article. And thanks for sharing the nice article, keep posting or updating news article.

Java training in Chennai | Java training in Annanagar | Java training in Chennai

Java training in Chennai | Java training in Bangalore | Java training in Electronic city

sunshineprofe said...

I’m experiencing some small security issues with my latest blog, and I’d like to find something safer. Do you have any suggestions?
safety course in chennai

gowsalya said...

Really you have done great job,There are may person searching about that now they will find enough resources by your post
Online DevOps Certification Course - Gangboard

Mounika said...

A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. I am learning a lot from you.
python course in pune | python course in chennai | python course in Bangalore

Unknown said...

This is quite educational arrange. It has famous breeding about what I rarity to vouch. Colossal proverb. This trumpet is a famous tone to nab to troths. Congratulations on a career well achieved. This arrange is synchronous s informative impolites festivity to pity. I appreciated what you ok extremely here 



Data Science training in kalyan nagar | Data Science training in OMR | Data science training in chennai

Data Science training in chennai | Best Data science Training in Chennai | Data science training in velachery | Data Science Training in Chennai

Data science training in tambaram | Data Science training in Chennai | Data science training in jaya nagar | Data science Training in Bangalore


mercyroy said...

Innovative thinking of you in this blog makes me very useful to learn.
i need more info to learn so kindly update it.
german language course in bangalore
German courses in Anna Nagar
German Certification Training in T nagar

cynthiawilliams said...

Thanks for sharing this Java concepts admin, it is really helpful. Keep sharing more like this.
Blockchain Training in Chennai
Blockchain Training near me
Python Training in Chennai
Python course in Chennai
ccna Training in Chennai
RPA Training in Chennai

dwarakesh said...

Whoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.

AWS Online Training in Bangalore | Amazon Web Services online Training in bangalore , india

AWS online Training in pune | Amazon Web Services online Training in Pune, india

AWS online Training in Chennai|Amazon Web Services online Training in Chennai,India

dwarakesh said...

Whoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.

AWS Online Training in Bangalore | Amazon Web Services online Training in bangalore , india

AWS online Training in pune | Amazon Web Services online Training in Pune, india

AWS online Training in Chennai|Amazon Web Services online Training in Chennai,India

DeepikaOrange said...

Great job.... Awesome list, just starting a blog and this is going to be a massive help. Thank you!

Software Testing Training
QTP Training in Chennai
Selenium Training in Chennai
LoadRunner Training in Chennai

Anbarasan14 said...

Thanks for sharing a worthy information. This is really helpful for learning. Keep doing more.

IELTS Tambaram
IELTS Coaching in Chrompet
IELTS Classes near Chennai Tambaram
IELTS Coaching Center in Chennai Adampakkam
Best IELTS Coaching Institute in Velachery
IELTS Coaching in Velachery
IELTS Classes in Velachery

swetha singh said...

Very nice blog, Thank you for providing good information.
airport ground staff training courses in chennai
airport ground staff training in chennai
ground staff training in chennai

rupa said...

This information is impressive. I am inspired with your post writing style & how continuously you describe this topic. Eagerly waiting for your new blog keep doing more.
Android Training in Bangalore
Android Course in Bangalore
Angularjs Training Institute in Bangalore
Angularjs Classes in Bangalore
Angularjs Coaching in Bangalore

LindaJasmine said...

Wonderful piece of work. Master stroke. I have become a fan of your words. Pls keep on writing.
Drupal Training in Velachery
Drupal Courses in Velachery
Drupal Training in Tambaram
Drupal Courses in Tambaram
Drupal Training in Adyar
Drupal Courses in Adyar

ProPlus Academy said...

Hey Nice Blog!! Thanks For Sharing!!!Wonderful blog & good post.Its really helpful for me, waiting for a more new post. Keep Blogging!
digital marketing course in coimbatore
php training in coimbatore

shiva said...

Great share !!

ieee final year projects in chennai

Robotics projects in chennai

Arduino projects in chennai

jefrin said...

Very useful topic thanks for the post '
aws training institute in chennai

Praylin S said...

Thank you for this wonderful post! I'm glad that I found your blog. Keep posting more.
Embedded System Course Chennai
Embedded course in chennai
JavaScript Training in Chennai
JavaScript Course in Chennai
C C++ Training in Chennai
C Training in Chennai
Embedded Training in OMR
Embedded Training in Velachery

Unknown said...

Thanks for such a great article here. I was searching for something like this for quite a long time and at last, I’ve found it on your blog. It was definitely interesting for me to read about their market situation nowadays.
Java Training in Noida

rohini said...

Useful information.I am actual blessed to read this article.thanks for giving us this advantageous information.I acknowledge this post.and I would like bookmark this post.Thanks
apple iphone service center in chennai | apple ipad service center in chennai | iWatch service center chennai | apple iphone service center in chennai

jefrin said...

Great post very useful for posting
java training chennai|java training institute chennai

salman chattels said...

Nice Article !!! Great Share

commercial property for sale in chennai

residential apartments for sale in chennai

independent house for sale in chennai

salman chattels said...

Nice Article !!! Great Share

commercial property for sale in chennai

residential apartments for sale in chennai

independent house for sale in chennai

VenuBharath2010@gmail.com said...

Awesome Writing. Extra-Ordinary piece of work. Waiting for your future updates.

Data Analytics Courses in Chennai
Big Data Analytics Courses in Chennai
Big Data Analytics in Chennai
Data Analytics Certification Courses in Chennai
Data Analytics Courses in OMR
Data Analytics Courses in Tambaram

lekha mathan said...

Excellent post gained so much of information, Keep posting like this.
Aviation Academy in Chennai
Air hostess training in Chennai
Airport management courses in Chennai
Ground staff training in Chennai
Aviation Courses in Chennai
Air hostess training in Chennai
Airline Courses in Chennai
airport ground staff training courses in Chennai

manjuprabhu59 said...

Thanks for the nice post and it is very useful for us and also very informative information to read.
Apple iPhone Service Center in Chennai
Oneplus Service Center in Chennai

firstfly said...

it's really a piece of new information to me, I learn more from this blog, I want to learn more from this blog, keep on it doing, I eagerly waiting for your updates, Thank you!!!

Best Aviation Academy in Chennai

Best Air hostess Training in Chennai

Pilot Training in Chennai

Airport Ground Handling Training in Chennai

Airport Flight Dispatcher Trainee in Chennai

RTR- Aero Training in Chennai

For more... facebook


Mithun said...

Great Post with lots of useful information. Special thanks for this blog highly useful..
SAP Training in Chennai | SAP ABAP Training in Chennai | SAP FICO Training in Chennai | SAP MM Training in Chennai

Vijiaajith said...

Very nice


freeinplanttrainingcourseforECEstudents
internship-in-chennai-for-bsc
inplant-training-for-automobile-engineering-students
freeinplanttrainingfor-ECEstudents-in-chennai
internship-for-cse-students-in-bsnl
application-for-industrial-training

Mithun said...

Excellent SAP Blog with lots of useful informations.
SAP Training in Chennai | SAP Training Center in Chennai | SAP Training Institute in Chennai

Vijiaajith said...

Very nice...
interview-questions/aptitude/permutation-and-combination/how-many-groups-of-6-persons-can-be-formed

tutorials/oracle/oracle-delete

technology/chrome-flags-complete-guide-enhance-browsing-experience/

interview-questions/aptitude/time-and-work/a-alone-can-do-1-4-of-the-work-in-2-days


interview-questions/programming/recursion-and-iteration/integer-a-40-b-35-c-20-d-10-comment-about-the-output-of-the-following-two-statements

janathan said...

usefull for technical improvement.....
Free Inplant Training Course For ECE Students
INTERNSHIP
INTERNSHIP FOR AERONAUTICAL ENGINERING STUDENTS IN INDIA
INTERNSHIP FOR CSE 3RD YEAR STUDENTS
Free Inplant Training Course for Mechanical Students
INTERNSHIP FOR ECE STUDENTS
INPLANT TRAINING FOR CIVIL
INTERNSHIP AT BSNL
INTERNSHIP FOR 2ND YEAR ECE STUDENTS
INTERNSHIP FOR AERONAUTICAL STUDENTS

janathan said...

Exelent blogs with lot usefull...
COMPANY INTERVIEW QUESTIONS AND ANSWERS
HACK FLIPKART WALLET
DATA STRUCTURE
TYPE SCRIPT GETTING ERROR
APTITUDE NUMBERS
APACHE PIG COUNT FUNCTION
APTITUDE PROFIT AND LOSS
SUBMIT IS NOT A FUNCTION ERROR IN JAVASCRIPT
THE CP OF 15 BOOK IS EQUAL TO THE SP
WHAT NUMBER IS TO BE SUBTRACTED

Training for IT and Software Courses said...

Excellent information with unique content and it is very useful to know about the SAP FICO .SAP FICO training in bangalore

Vijaykumar said...

exelent blog
Inplant Training in Chennai
Iot Internship
Internship in Chennai for CSE
Internship in Chennai
Python Internship in Chennai
Implant Training in Chennai
Android Training in Chennai
R Programming Training in Chennai
Python Internship
Internship in chennai for EEE

Vijaykumar said...

great blog....
Crome://Flags
Python Programming Questions and Answers PDF
Qdxm Sfyn Uioz
How To Hack Whatsapp Account Ethical Hacking
Power Bi Resume
Whatsapp Unblock Software
Tp Link Password Hack
The Simple Interest Earned On a Certain Amount Is Double
A Certain Sum Amounts To RS. 7000 in 2 years and to RS. 8000 in 3 Years. Find The Sum.
Zensoft Aptitude Questions

eTechno Soft Solutions said...

It is explained in clear way.It is very easy to understand the information.

eTechno Soft Solutions is a leading training institute for all kind of the Oracle Training in Bangalore with real-time experienced trainers with 100% Placement Assistance.

shree said...

very nice....
inplant training in chennai
very nice..
inplant training in chennai
inplant training in chennai for it.php
namibia web hosting
norway web hosting
rwanda web hosting
spain hosting
turkey web hosting
venezuela hosting
vietnam shared web hosting

shree said...

very nice....
inplant training in chennai
very nice..
inplant training in chennai
inplant training in chennai for it.php
namibia web hosting
norway web hosting
rwanda web hosting
spain hosting
turkey web hosting
venezuela hosting
vietnam shared web hosting

shri said...

nice....
internship in chennai for ece students
internships in chennai for cse students 2019
Inplant training in chennai
internship for eee students
free internship in chennai
eee internship in chennai
internship for ece students in chennai
inplant training in bangalore for cse
inplant training in bangalore
ccna training in chennai


dras said...

very useful...post
python training in chennai
internships in hyderabad for cse 2nd year students
online inplant training
internships for aeronautical engineering students
kaashiv infotech internship review
report of summer internship in c++
cse internships in hyderabad
python internship
internship for civil engineering students in chennai
robotics course in chennai

sugan said...

very nice post and useful information........
r programming training in chennai
internship in bangalore for ece students
inplant training for mechanical engineering students
summer internships in hyderabad for cse students 2019
final year project ideas for information technology
bba internship certificate
internship in bangalore for ece
internship for cse students in hyderabad
summer training for ece students after second year
robotics courses in chennai



shalini said...

nice....
category/advocate-resume
category/agriculture-forestry-fishing
category/android-developer-resume
category/assistant-professor-resume
category/chartered-accountant-resume
category/database-resume
category/design-engineer-resume
category/developer-resume
category/engineer-resume
category/entrepreneur-and-financial-services-resume



Praisy Margret said...

useful information..nice..
devops-engineer-resume-samples
digital-marketing-resume-samples
digital-marketing-resume-samples
electronics-engineer-resume-sample
engineering-lab-technician-resume-samples
english-teacher-cv-sample
english-teacher-resume-example
english-teacher-resume-sample
excel-expert-resume-sample
executive-secretary-resume-samples

Anonymous said...

divorce procedure for overseas pakistani
how to send divorce notice to wife in pakistan
online court marriage in Pakistan
court marriage in Pakistan
court marriage in Pakistan
court marriage certificate
Marriage law in Pakistan
court marriage procedure in pakistan
family lawyer in pakistan
divorce Procedure law in Pakistan

Reshma said...


This post is so interactive and informative.keep update more information...
Software Testing Course in Bangalore
Software Testing Course in Hyderabad

David Fincher said...

This post is so interactive and informative.keep update more information...
hadoop training in velachery
Big data training in chennai

David Fincher said...

This post is so interactive and informative.keep update more information...
DevOps course in Tambaram
DevOps Training in Chennai

360DigiTMG said...

In the wake of perusing your article, I was astounded. I realize that you clarify it well overall. What's more, I trust that different perusers will likewise encounter how I feel in the wake of perusing your article.
data analytics courses in hyderabad

Yasodha Varman said...

Infycle Technologies is providing the AWS Solution Architect Training in Chennai with other professional courses such as Machine Learning, DevOps, Artificial Intelligence, Data Science, Cyber Security, Selenium Testing, Graphic Design and Animation, Digital Marketing, Cyber Security, Python, Oracle, Big data, Azure, Medical Coding, etc., exclusively for the freshers. For more information and the free demo, classes call +91-7504633633, +91-7502633633.

Matt Reeves said...

This post is so interactive and informative.keep update more information...
AWS Training in Tambaram
AWS Training in Chennai

Tamil novels said...

Thank you for sharing this wonderful article.
Thirukkural pdf
Sai Satcharitra in English pdf
Sai Satcharitra in Tamil pdf
Sai Satcharitra in Telugu pdf
Sai Satcharitra in Hindi pdf

Niyaz said...

Nice Post!!! thanks for sharing this information with us.
Why is DevOps so popular?
What is DevOps?

360DigiTMG said...


Wonderful blog post. This is absolute magic from you! I have never seen a more wonderful post than this one. You've really made my day today with this. I hope you keep this up!
data analytics training in hyderabad