<p>Nokia has stopped offering its Developer's Suite, relying on other IDEs, including Eclipse. Meanwhile, Nokia changed its own development tools again and EclipseMe has also changed. This leaves most documentation irrelevant. </p>

<p>I want to know what does it take to make a simple Hello-World?</p>

<p>(I already found out myself, so this is a Q&amp;A for other people to use)</p>

[{'answer_id': 62615, 'author': 'Asaf R', 'author_id': 6827, 'author_profile': 'https://Stackoverflow.com/users/6827', 'pm_score': 4, 'selected': True, 'text': '<p>Here\'s what\'s needed to make a simple hello world -</p>\n\n<ol>\n<li>Get <a href="http://www.eclipse.org/downloads/" rel="nofollow noreferrer">Eclipse</a> IDE for Java. I used Ganymede. Set it up.</li>\n<li>Get Sun\'s <a href="http://java.sun.com/products/sjwtoolkit/download.html" rel="nofollow noreferrer">Wireless Toolkit</a>. I used 2.5.2. Install it.</li>\n<li>Get Nokia\'s SDK (<a href="http://developers.nokia.com/info/sw.nokia.com/id/cc48f9a1-f5cf-447b-bdba-c4d41b3d05ce/Series_40_Platform_SDKs.html" rel="nofollow noreferrer">found here</a>), in my case for S40 6230i Edition, and install it choosing the option to <strong>integrate with Sun\'s WTK</strong></li>\n<li>Follow the instructions at <a href="http://www.eclipseme.org/" rel="nofollow noreferrer">http://www.eclipseme.org/</a> to download and install Mobile Tools Java (MTJ). I used version 1.7.9. </li>\n<li>When configuring devices profiles in MTJ (inside Eclipse) use the Nokia device from the WTK folder and NOT from Nokia\'s folder.</li>\n<li>Set the WTK root to the main installation folder - for instance c:\\WTK2.5.2; Note that the WTK installer creates other folders apparently for backward compatibility.</li>\n<li>Get <a href="http://antenna.sourceforge.net/" rel="nofollow noreferrer">Antenna</a> and set its location in MTJ\'s property page (in Eclipse).</li>\n</ol>\n\n<p><a href="http://wiki.forum.nokia.com/index.php/Hello_World_in_Java_ME" rel="nofollow noreferrer">Here\'s an HelloWorld sample to test the configuration.</a></p>\n\n<p>Note: It worked for me on WindowsXP.\nAlso note: This should work for S60 as well. Just replace the S40 SDK in phase 3 with S60\'s.</p>\n'}, {'answer_id': 63574, 'author': 'Brad Richards', 'author_id': 7732, 'author_profile': 'https://Stackoverflow.com/users/7732', 'pm_score': 3, 'selected': False, 'text': '<p>Unless you need to do something Nokia-specific, I suggest avoiding the Nokia device definitions altogether. Develop for a generic device, then download your application to real, physical devices for final testing. The steps I suggest:</p>\n\n<ol>\n<li><p>Download and install Sun\'s Wireless Toolkit.</p></li>\n<li><p>Install EclipseME, using the method <a href="http://eclipseme.org/docs/installEclipseME.html#step2c" rel="nofollow noreferrer">"installing via a downloaded archive"</a>.</p></li>\n<li><p><a href="http://eclipseme.org/docs/configuring.html" rel="nofollow noreferrer">Configure EclipseME</a>. Choose a generic device, such as the "DefaultColorPhone" to develop on.</p></li>\n<li><p>Create a new project "J2ME Midlet Suite"</p></li>\n<li><p>Right-click on the project, and create a new Midlet "HelloWorld"</p></li>\n<li><p>Enter the code, for example:</p></li>\n</ol>\n\n<pre><code>public HelloWorld() {\n    super();\n    myForm = new Form("Hello World!");\n    myForm.append( new StringItem(null, "Hello, world!"));\n    myForm.addCommand(new Command("Exit", Command.EXIT, 0));\n    myForm.setCommandListener(this);\n}\n\nprotected void startApp() throws MIDletStateChangeException {\n    Display.getDisplay(this).setCurrent(myForm);\n}\n\nprotected void pauseApp() {}\n\nprotected void destroyApp(boolean arg0) throws MIDletStateChangeException {}\n\npublic void commandAction(Command arg0, Displayable arg1) {\n    notifyDestroyed();\n}\n</code></pre>\n'}, {'answer_id': 63728, 'author': 'Stepan Stolyarov', 'author_id': 6573, 'author_profile': 'https://Stackoverflow.com/users/6573', 'pm_score': 2, 'selected': False, 'text': '<p>The most annoying issue with EclipseME for me was the "broken" debugger, which just wouldn\'t start. This is covered in docs, but it took me about an hour to find this tip when I first installed EclipseME, and another hour when I returned to JavaME development a year later, so I decided to share this piece of knowledge here, too.</p>\n\n<p>If the debugger won\'t start,</p>\n\n<ol>\n<li>open "Java > Debug" section in Eclipse "Preferences" menu, and uncheck "Suspend execution on uncaught exceptions" and "Suspend execution on compilation errors" and</li>\n<li>increase the "Debugger timeout" near the bottom of the dialog to at least 15000 ms. </li>\n</ol>\n\n<p>After that, Eclipse should be able to connect to KVM and run a midlet with a debugger attached.</p>\n'}]
['https://Stackoverflow.com/questions/62491', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6827/']