| 
			
			 | 
		#1 | 
| 
			
			
			
			 Junior Member 
			
			![]() 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) Code: 
	String a = "a"; String b = "b"; a += b;  
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 ( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586 
				Karma: 6299993 
				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 10:02 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Groupie 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Junior Member 
			
			![]() 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 08:14 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | |
| 
			
			
			
			 Going Viral 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212 
				Karma: 18210809 
				Join Date: Feb 2012 
				Location: Central Texas 
				
				
				Device: No K1, PW2, KV, KOA 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 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.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 (offline) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907 
				Karma: 6736094 
				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.)  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| All strings must be XML compatible? | talzag | Conversion | 2 | 02-19-2021 03:28 PM | 
| How to exclude strings before and after | ElMiko | Sigil | 14 | 07-21-2012 07:34 PM | 
| What are these strings for? | Jellby | Calibre | 2 | 05-22-2011 02:08 PM | 
| Translating long/complex strings | Jellby | Calibre | 12 | 08-10-2009 05:36 PM | 
| The Tangled Strings of the Marionettes | Team7 | Reading Recommendations | 5 | 01-14-2005 07:19 PM |