views:

11

answers:

0

Greetings,

I am trying to use Garcer API for Mobile Application Development (https://www.garcer.com/packages.aspx) and have some errors when I run the HelloWorld, which is included as part of the Garcer J2MEGUI API. Here is what I am trying to do:

Technology used:

  • Eclipse 3.5 (Galileo)
  • J2ME 3.0 with DefaultFXTouchPhone1 Emulator
  • JDK 1.6
  • Included Garcer's J2MEGUI jar as part of external libraries

Steps: 1. I create a new MIDlet Project through Eclipse Perspective (say GarcerAPITest) 2. When I am creating the project I add external jar "j2MEGUI.jar" (which contains all the classes) 3. I create a MIDlet HelloWorld and copy paste the contents from the file under ../J2ME GUI Demo Project/HelloWorld.java which is provided as part of the API download 4. Everything compiles properly 5. When I try to run the project using "Emulated Java ME MIDlet" an error occurs on the emulator which says

"The Application has unexpectedly quit. Contact the application provider to resolve the issue. garcer/j2megui/GUICanvas"

Here is the exception from the Eclipse console

Installing suite from: http://127.0.0.1:4441/GarcerAPITest.jad
java.lang.NoClassDefFoundError: garcer/j2megui/GUICanvas
- java.lang.Class.invoke_verify(), bci=0
- java.lang.Class.initialize(), bci=117
- java.lang.Class.forName(), bci=0
- com.sun.midp.main.CldcMIDletLoader.newInstance(), bci=1
- com.sun.midp.midlet.MIDletStateHandler.createMIDlet(), bci=66
- com.sun.midp.midlet.MIDletStateHandler.createAndRegisterMIDlet(), bci=17
- com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=27
- com.sun.midp.main.AbstractMIDletSuiteLoader.startSuite(), bci=52
- com.sun.midp.main.CldcMIDletSuiteLoader.startSuite(), bci=8
- com.sun.midp.main.AbstractMIDletSuiteLoader.runMIDletSuite(), bci=161
- com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=26

Can you tell me if there is something wrong in my approach? Has anyone else faced the same issue? I am trying to evalute some GUI frameworks for J2ME development which is why I am trying Garcer J2MEGUI

Appreciate any comments/feedback on open source J2ME GUI frameworks which have extra features and components as compared to "javax.microedition.lcdui" package

Regards,

TJ