View Single Post
Old 06-27-2013, 04:33 PM   #3
Sothh
Shaman of Time
Sothh began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2011
Device: Kindle Paperwhite First Gen
Quote:
Originally Posted by ixtab View Post
I don't see anything really wrong either. However, if the error message you're citing is exactly what you see, then the implementation is looking for a class called "Main", while you are providing one called "main". Java is case-sensitive, and classes should always start with an upper-case letter. (It would be the first time that I see something being so picky about it, but it's always a good idea to follow conventions).

As a side note: of course, I'm not going to force anything onto you, but experience shows that programming with a real IDE is much less error-prone, and much more comfortable and efficient.
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!
Sothh is offline   Reply With Quote