java.lang.ClassNotFoundException

132 views
Skip to first unread message

JacquesBotha

unread,
Dec 29, 2008, 10:12:40 AM12/29/08
to JVNMobileGIS
I keep getting the following error...

Running with storage root C:\Documents and Settings\Jacques\j2mewtk
\2.5.2\appdb\DefaultColorPhone
Running with locale: English_South Africa.1252
Running in the identified_third_party security domain
java.lang.ClassNotFoundException: org/javavietnam/gis/client/midp/
JVNMobileGISMIDlet
at com.sun.midp.midlet.MIDletState.createMIDlet(+29)
at com.sun.midp.midlet.Scheduler.schedule(+52)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+80)
Execution completed.
3349760 bytecodes executed
24 thread switches
1667 classes in the system (including system classes)
17251 dynamic objects allocated (515212 bytes)
2 garbage collections (449248 bytes collected)


I'm running the following:

Java 6, update 11

Sun Wireless Toolkit 2.5.2 in folder:
C:\Java\WTK252_01\

Eclipse Version: 3.4.1
C:\Java\eclipse

EclipseME v 1.7.9
C:\Java\eclipse\plugin\

Can someone please tell me whats wrong.... The emulator just does not
seem to work!
I'm seriously thinking swapping to Netbeans...

Jacques

Khanh Le Ngoc Quoc

unread,
Dec 31, 2008, 1:47:25 AM12/31/08
to jvnmob...@googlegroups.com
Hi Jacques,

There is a misplaced quote in EclipseME launch command. Please follow these steps to fix it:
1. Go to Preferences > J2ME > Device Management
2. Select your default device and click "Edit..." button
3. In "Edit DefaultColorPhone Definition" dialog, choose "Basic" tab
4. Change content of "Launch Command Template" to:
%executable% [%debugPort%|-Xdebug -Xrunjdwp:transport=dt_socket,suspend=y,server=y,address=%debugPort%] [%classpath%|-classpath "%classpath%"] -Xdevice:%device% [%jadfile%|-Xdescriptor:"%jadfile%"] [%verbose%|-Xverbose:%verbose%] [%heapsize%|-Xheapsize:%heapsize%] [%securityDomain%|-Xdomain:%securityDomain%] %userSpecifiedArguments% [%target%|%target%] [%otaurl%|-Xjam:transient=%otaurl%]

(Screenshot: http://jvnmobilegis.googlecode.com/svn/docs/images/screenshots/development/eclipse/07_Eclipseme_device_launch_command.png)
5. Run your project again.

Don't hesitate to contact me if you still have any problem.

Cheers,
--
Khanh Le Ngoc Quoc
Reply all
Reply to author
Forward
0 new messages