...cannot be resolved (beginner help)

Started by
10 comments, last by CRACK123 19 years, 8 months ago
I've just started trying to learn a bit about programming in J2ME, following this tutorial: http://www.gamedev.net/reference/articles/article1949.asp I've downloaded the following: J2 SDK 1.4 for Windows J2ME WLT for Windows Eclipse SDK for Winodows (I tried Borland first, but had the same problem) I've tried to run teh first program in the tutorial, but it gives me four errors: The import javax.microedition cannot be resolved MIDlet cannot be resolved or is not a valid superclass MIDletStaeChangeException cannot be resolved (or is not an exception type) for the method startApp MIDletStaeChangeException cannot be resolved (or is not an exception type) for the method destroyApp From what I've read and been told, I guess this means that javax.microedition is part of the WLT, and that Eclipse (and Borland JBuilder before that) cannot find it. Is this right? If so, any ideas as to how I can fix it? I've been told by a friend to play with the classpaths, which I've been doing unsuccessfully. Any help would be greatly appreciated; I'm very keen to get started learning this stuff properly. Zild [Edited by - Zild on August 21, 2004 12:24:43 AM]
-------------Hunted by allAided by noneUSS CarpathiaNCC-17499www.carpathia.tk - Starfleet renegades
Advertisement
You can manually configure Eclipse to find the needed libraries, but then you will need to configure pre-verifying and obfuscation and on.. and on... lot's of manual stuff.

An easier way is to install EclipseME plug-in, which is very easy. and configuration won't take you long.

Check it out: http://eclipseme.sourceforge.net/

Make sure that you have the latest Eclipse IDE (at least build 3.0M7)

... no magic ... just coding<br/>Blogger
Thanks a lot... will try that ASAP.
-------------Hunted by allAided by noneUSS CarpathiaNCC-17499www.carpathia.tk - Starfleet renegades
Okay, that worked very well, and quite easily too - thanks a lot, tellman :)

Now a few questions regarding colour:

What is a good emulator for colour phones?

Any idea what percentage of existing phones (that can be used for games downloadable games) have colour? I'm only after very basic colour...

[EDIT] -> I've now started using DefaultColorPhone, but the questions still stand. Is there something better? I'm after something that will be good for the majority of colour phones out there.

[Edited by - Zild on August 19, 2004 1:43:51 AM]
-------------Hunted by allAided by noneUSS CarpathiaNCC-17499www.carpathia.tk - Starfleet renegades
Well you're best of using the nokia series 40 and 60 emulators as about 80% of the market is made up of these phones.

Really though, you want an emulator for every phone you plan to develop for.
Do not remove a fly from your friend's forehead with a hatchet.Chinese Proverb
Thanks...

I went and downloaded the Nokia WTK 2.1 - Nokia seem to be the major players. I'm hoping to get to work with that now. I'll look at those series in particular.

One particular concern has been screen resolution. For now, I'm going to settle on 128x128. The vast majority of Nokia phones are this size or bigger (bigger is fine, given the application).

Zild
-------------Hunted by allAided by noneUSS CarpathiaNCC-17499www.carpathia.tk - Starfleet renegades
you will alos need a set of ant task for j2me development..

at:

http://antenna.sourceforge.net

in Eclipse to install in ant lib you do:

windows>preferences>ant runitme

in resulting screen hit button to load new external jar left side ..in resulting dialog screen point to your your antanna jar file that you downloaded..

the dist has some example build scripts to modfiy to use antenna ant tasks in your build scripts..

Well, my first attempt to add some Nokia emulators didn't quite work. I've just spent about 36 HOURS getting back to a working copy Eclipse...

Now, does anybody know where the second part to this tutorial is?

http://www.gamedev.net/reference/articles/article1949.asp

Was a second part ever written?

If not, does anybody have any good resources for learning more J2ME? I'd rather have a good tutorial than have to keep asking people questions...

Thanks.
-------------Hunted by allAided by noneUSS CarpathiaNCC-17499www.carpathia.tk - Starfleet renegades
For starters:

http://www.j2me.org
http://www.forum.nokia.com/forum/
http://billday.com/j2me/
http://forum.java.sun.com/wireless/
http://www.microjava.com/nokia/documents
http://www.freeroller.net/page/shareme/J2MEResources
... no magic ... just coding<br/>Blogger
If you already know J2SE, then grabbing the MIDP API javadoc off Sun's website is probably your best bet.

This topic is closed to new replies.

Advertisement