| | |
java.lang.NoClassDefFoundError
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2008
Posts: 25
Reputation:
Solved Threads: 0
Hi all.
I have a problem when I am trying to run an application on my mobile.
The app compiles on netbeans, but when I copies it to my mobile telephone, it sais:
java.lang.NoClassDefFoundError. I have been told that I should have references to everything and that i might need to run it with java -jar projectname.jar. Can anyone tell me how to change this or what could be wrong.
Kind regards. Michael
I have a problem when I am trying to run an application on my mobile.
The app compiles on netbeans, but when I copies it to my mobile telephone, it sais:
java.lang.NoClassDefFoundError. I have been told that I should have references to everything and that i might need to run it with java -jar projectname.jar. Can anyone tell me how to change this or what could be wrong.
Kind regards. Michael
Can you post copy/attach your project? I can have look at it for you...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Aug 2008
Posts: 25
Reputation:
Solved Threads: 0
Hi Peter. This is the project. It should almost be identical to the one i downloaded from IBM. Thanks in advance.
http://rapidshare.com/files/137256309/btevents.zip.html
http://rapidshare.com/files/137256309/btevents.zip.html
The file provided by you worked for me without any problems on Sony Ericsson w910 and also under emulator on my laptop. Unfortunately I can not confirm connection between these two as my laptop BT sometimes have the mind on its own. On what device you trying to deploy this file?
PS: The example has one big problem, no Exit command
PS: The example has one big problem, no Exit command
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Aug 2008
Posts: 25
Reputation:
Solved Threads: 0
That was strange. I am trying to make it work on a htc touch diamond. Just to make sure. All you did was unpack the folder, and then copy it to the mobile. what file did you execute the program with (JAD or JAR file). I am sorry if this is a stupid question, but I am very new to java programming 
thanks in advance. Michael

thanks in advance. Michael
HTC is big unknown in Java mobile development. Looking on their website in the device specification I did not find any note on JVM being present on device.
I came across some forums that maybe able to help you htcwizardweb.net and forum.xda-developers.com. You need to either ask them or browse forums for appropriate J2ME development and deployment on these devices.
I'm sorry that I'm not able to help you in this...
I came across some forums that maybe able to help you htcwizardweb.net and forum.xda-developers.com. You need to either ask them or browse forums for appropriate J2ME development and deployment on these devices.
I'm sorry that I'm not able to help you in this...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- Exception in thread "main" java.lang.NoClassDefFoundError: Invaders Error (Java)
- Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError (Java)
- java.lang.NoClassDefFoundError: java/lang/StringBuilder (Java)
- java.lang.NoClassDefFoundError: JBuilder (Java)
- exception in thread "main" java.lang.NoClassDefFoundError (Java)
- Following tutorials and getting java.lang.NoClassDefFoundError (Java)
Other Threads in the Java Forum
- Previous Thread: Not able to call build.properties file from build.xml
- Next Thread: compiler as the final year project
| Thread Tools | Search this Thread |
Tag cloud for Java
addressbook android api apple applet application arguments array arrays automation binary bluetooth button calculator chat class classes client code columns component converter database draw eclipse error errors event exception fractal ftp game givemetehcodez graphics gridlayout gui helpwithhomework html ide image inetaddress input integer j2me japplet java javaprojects jme jmf jni jpanel jtextarea julia link linux list loop map method methods midlethttpconnection mobile netbeans newbie number objects openjavafx oracle php print problem program programming project projects recursion rim scanner screen server set signing size smart sms socket sort sql storm string support swing test threads time tree unlimited variablebinding webservices windows






