java.lang.NoClassDefFoundError

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2008
Posts: 25
Reputation: Dancealot is an unknown quantity at this point 
Solved Threads: 0
Dancealot Dancealot is offline Offline
Light Poster

java.lang.NoClassDefFoundError

 
0
  #1
Aug 14th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,242
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 491
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: java.lang.NoClassDefFoundError

 
-1
  #2
Aug 14th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 25
Reputation: Dancealot is an unknown quantity at this point 
Solved Threads: 0
Dancealot Dancealot is offline Offline
Light Poster

Re: java.lang.NoClassDefFoundError

 
0
  #3
Aug 14th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,242
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 491
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: java.lang.NoClassDefFoundError

 
-1
  #4
Aug 14th, 2008
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
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 25
Reputation: Dancealot is an unknown quantity at this point 
Solved Threads: 0
Dancealot Dancealot is offline Offline
Light Poster

Re: java.lang.NoClassDefFoundError

 
0
  #5
Aug 14th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,242
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 491
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: java.lang.NoClassDefFoundError

 
-1
  #6
Aug 14th, 2008
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...
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 25
Reputation: Dancealot is an unknown quantity at this point 
Solved Threads: 0
Dancealot Dancealot is offline Offline
Light Poster

Re: java.lang.NoClassDefFoundError

 
0
  #7
Aug 14th, 2008
Thx a lot mate. I will try to look at those forums. thanks for looking at the code for me, really appriciate it.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC