View Single Post
Old 06-27-2013, 04:22 PM   #2
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
Hi all. Been a long time lurker on here, but now that I have my PW (got it yesterday!) I am needing some help.

I am working on a "Hello World" kindlet and I can't seem to get it to run. I have signed the app with proper dev keys, setup the manifest file correctly (I believe), and yet when I try to open the kindlet on my PW, I get an error something like "Error: Unable to find class Main."

I have triple checked everything, and I can't find a problem with my code. I have attached the source if anyone could help.

A couple notes about the source:

Because this is on a PW, it uses the Kindlet-2.2.jar, which is the 2.0 version of the KDK (I believe.)

I am not using an IDE, just Notepad++ and some batch files to do the compiling. (In windows.) This is my usual way of coding, but I hardly ever mess with Java, so I may be doing something wrong.

Thanks!
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.
ixtab is offline   Reply With Quote