Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-15-2016, 01:07 PM   #1
sega dude
Junior Member
sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Posts: 9
Karma: 30452
Join Date: Aug 2013
Device: Nook Simple Touch with GlowLight, K4 NoTouch
Main class not found when trying to launch my kindlet

Edit: I figured out what the problem was. It was because I was compiling the class with JavaSE-1.8 in Eclipse. This lead to a java.lang.UnsupportedClassVersionError. So I changed the JRE System Library to J2SE-1.5. Now it runs just fine. I found all this out by looking at the crash.log file.


I made a kindlet using a combonation of this tutorial and this tutorial. When I put it on my jailbroken K4 after signing it, I get a Main class not found error when I try to launch it.



This is what my mainifest looks like:

Code:
Manifest-Version: 1.0
Main-Class: testProject.segadude.test.Main
Implementation-Title: Hello
Implementation-Version: 1
Implementation-Vendor: segadude
Extension-List: SDK
SDK-Extension-Name: com.amazon.kindle.kindlet
SDK-Specification-Version: 1.3
Toolbar-Mode: persistent
Font-Size-Mode: point
I created the manifest and jar with Eclipse. I used the hello world example code in the second tutorial I linked. My main class is where it says it is when I look into the jar, so I don't understand why I am getting this error.

Last edited by sega dude; 07-15-2016 at 02:00 PM. Reason: Figured out problem
sega dude is offline   Reply With Quote
Old 07-16-2016, 03:54 AM   #2
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Quote:
Originally Posted by sega dude View Post
Edit: I figured out what the problem was. It was because I was compiling the class with JavaSE-1.8 in Eclipse. This lead to a java.lang.UnsupportedClassVersionError. So I changed the JRE System Library to J2SE-1.5. Now it runs just fine. I found all this out by looking at the crash.log file.
I had a similar problem time ago. Where i have to look for the crash.log file when i write a kindlet?
encol is offline   Reply With Quote
Advert
Old 07-17-2016, 11:01 PM   #3
sega dude
Junior Member
sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.sega dude can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
Posts: 9
Karma: 30452
Join Date: Aug 2013
Device: Nook Simple Touch with GlowLight, K4 NoTouch
Quote:
Originally Posted by encol View Post
I had a similar problem time ago. Where i have to look for the crash.log file when i write a kindlet?
It's in "\developer\<Implementation-Title in manifest>\work". Since I have "Hello" as the Implementation-Title in my manifest, it was in "\developer\Hello\work" for me. The developer folder is in the root on the kindle drive.
sega dude is offline   Reply With Quote
Old 07-18-2016, 05:20 PM   #4
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Thanks for the info
encol is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aura H2O MicroSDHC card class 4 or class 10? chipro12 Kobo Reader 5 07-04-2015 02:24 AM
Launch Kindlet from shell willysengewald Kindle Developer's Corner 5 07-20-2013 08:45 AM
Kindlet gives "Unable to find class Main" Sothh Kindle Developer's Corner 4 06-27-2013 08:01 PM
Kindlet Dev SOS: Main class not found cubemike99 Kindle Developer's Corner 7 02-09-2013 09:38 AM
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


All times are GMT -4. The time now is 09:19 AM.


MobileRead.com is a privately owned, operated and funded community.