View Single Post
Old 06-27-2013, 06:17 PM   #4
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: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by Sothh View Post
After a TON of searching, I found the problem. It was not with the naming, but because the Kindle uses Java 1.4, and I was using the latest (1.7) to compile with.

The solution is to compile using
Code:
-target 1.4 -source 1.4
After doing this, the kindlet no longer gives the main class not found error, though the code still does not work. (I believe its because I don't actually have 1.4 to compile against using
Code:
-Xbootclasspath:/usr/java/jdk1.4.0_30/jre/lib/rt.jar
I am downloading 1.4 now, and I will update on the outcome.

Thanks!
No, you don't necessarily *have* to compile with the 1.4 SDK. Compiling with the given arguments will do, whatever your SDK is.

You can also check /mnt/us/developer/<Kindlet name>/work/crash.log for what exactly is causing problems.
ixtab is offline   Reply With Quote