Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-03-2013, 05:49 AM   #1
indeed
Junior Member
indeed began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite
Can't concat strings: NoClassDefFoundError

hi,

my program crashed with the following exception:
Code:
java.lang.NoClassDefFoundError: java.lang.StringBuilder
at sgfEditor.Main.start(Main.java:92)
at com.amazon.kindle.kindlet.internal.lifecycle.K.call(dlc:998)
at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:178)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1029)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:547)
at java.lang.Thread.run(Unknown Source)
at java.lang.Thread.startup(Unknown Source)
It seems I cannot concat strings. These lines produce the exception:
Code:
String a = "a";
String b = "b";
a += b;
the firmware version of my kindle paperwhite is 5.3.5

indeed is offline   Reply With Quote
Old 09-03-2013, 06:04 AM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
You know... I seem to recall that happening to me...

Anyways: http://geekycoder.wordpress.com/2009...ization-of-vm/

Perhaps that has the answer?
Not awake properly yet.


Could there be another type of concatenation?
I vaguely recall using some other construct?? <-- This, oh yeah. Java too new


EDIT:
Oh yeah! doh. REading down - that was it

would need to use retroweaver probably.

You are on WIndows then?

Last edited by twobob; 09-03-2013 at 09:02 AM.
twobob is offline   Reply With Quote
Advert
Old 09-03-2013, 06:13 AM   #3
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
Your toolchain generates code for Java >= 1.5, while the JVM on the Kindle expects 1.4 code.
hawhill is offline   Reply With Quote
Old 09-03-2013, 06:22 AM   #4
bhaak
Groupie
bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.
 
bhaak's Avatar
 
Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
What Hawhill said. You should be able to fix that with supplying a the target parameter.

For example:
javac -target 1.4 YourClass.java
bhaak is offline   Reply With Quote
Old 09-03-2013, 06:40 AM   #5
indeed
Junior Member
indeed began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite
Thank you, that solved it.
In the following tutorial https://www.mobileread.com/forums/sho...d.php?t=219663 the target parameter wasn't specified. Maybe it should be changed.

edit: I had to set the source parameter to 1.4 as well.

Last edited by indeed; 09-03-2013 at 07:14 AM.
indeed is offline   Reply With Quote
Advert
Old 09-03-2013, 08:32 AM   #6
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by indeed View Post
Thank you, that solved it.
In the following tutorial https://www.mobileread.com/forums/sho...d.php?t=219663 the target parameter wasn't specified. Maybe it should be changed.

edit: I had to set the source parameter to 1.4 as well.
We have a method for that here -
Go to the post with the omission -
Click the "Report Post" button on it -
Make your request for the correction in the report text box.

That gets your request in front of the forum moderators.
knc1 is offline   Reply With Quote
Old 09-03-2013, 02:03 PM   #7
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Better yet: just post it in the original thread, so the original author gets notified - he might well adapt the instructions.

(Yes, I could change it, but I'm very reluctant to modify other people's posts, unless there's a real "moderator" reason.)
ixtab is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
All strings must be XML compatible? talzag Conversion 2 02-19-2021 02:28 PM
How to exclude strings before and after ElMiko Sigil 14 07-21-2012 06:34 PM
What are these strings for? Jellby Calibre 2 05-22-2011 01:08 PM
Translating long/complex strings Jellby Calibre 12 08-10-2009 04:36 PM
The Tangled Strings of the Marionettes Team7 Reading Recommendations 5 01-14-2005 06:19 PM


All times are GMT -4. The time now is 05:57 PM.


MobileRead.com is a privately owned, operated and funded community.