02-08-2013, 10:32 PM | #1 |
Enthusiast
Posts: 37
Karma: 260446
Join Date: Feb 2013
Device: Kindle Paperwhite
|
Kindlet Dev SOS: Main class not found
I'd love to attempt to write a Picross kindlet, but I can't even get a basic "Hello World" to run. However I try to package it, I get a "Main class not found" error. What the heck am I doing wrong? Thanks in advance for your help.
FYI, I'm on a Paperwhite running 5.3.3. Here is the current version of my kindlet: http://www.mediafire.com/download.php?dbvb7oxe1eddne0 |
02-08-2013, 10:45 PM | #2 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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
|
err
I'm no expert... but is your err... Package right?
I attached a piccy of a working building thingy. that look familiar? |
Advert | |
|
02-08-2013, 10:48 PM | #3 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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
|
Quote:
What OS. Do you know java? etc... I looked at your package. Main-Class: HelloTest.Main shouldnt that be at least... HelloTest/Main.class I dont see a file named HelloTest.Main ? stuff like that. |
|
02-08-2013, 10:59 PM | #4 |
Enthusiast
Posts: 37
Karma: 260446
Join Date: Feb 2013
Device: Kindle Paperwhite
|
It's my own version of a hello world. I'm on Ubuntu without an IDE. And as to the Main-Class, package folders are separated by dots, not slashes, wherever I've seen them.
|
02-08-2013, 11:12 PM | #5 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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
|
Right. fair enough.
I'm not arguing. point it at a file that exists then. There are several hello worlds out there. not to mention a few decent example fuller apps and big long wiki entry. I have written a fair few test kindlets now. basic but they ran. on a 3 and 5. That misdirected call the the main class is the first glaring error. Hope that helps. |
Advert | |
|
02-08-2013, 11:14 PM | #6 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
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
|
This and this are the kind of thing I am talking about... looks like your issue kinda.
https://www.mobileread.com/forums/sho...2&postcount=43 https://www.mobileread.com/forums/sho...0&postcount=44 |
02-09-2013, 06:41 AM | #7 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
First: *use* an IDE. They're good.
Second: package names should be all lowercase, not camel-case. This might be the reason why your program fails (but probably isn't). Third: You're not overriding any of the methods of AbstractKindlet. So even if your Kindlet did start, it wouldn't do anything. Fourth: Otherwise, your META-INF/MANIFEST.MF looks ok (at first glance), but I don't have any device around right now to do further testing. Fix the abovementioned problems first... And, as twobob said, you might be better off starting from a known-working hello world example. |
02-09-2013, 09:38 AM | #8 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
cat > helloworld.java
Real programmers do it this way. ^D |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
All new Fires are SO and you cannot opt out of SOs | jswinden | Kindle Fire | 41 | 09-09-2012 08:17 AM |
wikipedia SOS 2006 in epub | migrane | Kobo Reader | 0 | 04-24-2012 04:01 PM |
Einfacher Feature-Request: /dev/ptmx und /dev/ttyUSB2 modes | Seneca | PocketBook | 2 | 12-05-2011 04:41 PM |
PRS-650 SD Card Importance? SDHC, SDHC Class 4, Class 10 etc is it important | Renji | Sony Reader | 11 | 12-03-2011 12:30 PM |
SOS: iliad hanged on while booting | tobyforever | iRex | 2 | 08-20-2009 11:41 AM |