03-15-2011, 05:01 PM | #31 |
Junior Member
Posts: 1
Karma: 10
Join Date: Mar 2011
Device: theworldcreator@gmail.com
|
Hi Adrian, your KWT is great, Selectable Label is exactly what I need, thanks a lot!
I'm trying to make line of the text with bold (or lined) subtext like this: Bla bla bla bla. Text could consist of two lines. But all attempts to put three parts with different styles into one line KBox are useless and i found no ways to use multistyle in one KTextArea. So, could you give me example or tip? |
05-29-2011, 04:34 AM | #32 |
Connoisseur
Posts: 62
Karma: 10
Join Date: May 2011
Location: romania
Device: kindle3 3g and KT 3G
|
Hi!
What are the steps to install and run Goban on kindle ? Last edited by kinkle; 05-29-2011 at 06:39 AM. |
06-07-2011, 03:31 PM | #33 |
Connoisseur
Posts: 59
Karma: 14744
Join Date: Jan 2011
Location: Indianapolis, IN USA
Device: Kindle 3 wifi
|
Hi - I am new to Java and Kindlets, but not new to programming (I mainly work with C).
Anyway, I am on step 2 of the guide, having created a project via NetBeans, and having added Kindlet-1.2 as a library to this project. When I try to compile the "Hello World" example above, I get the following error: /Users/kdgarris/NetBeansProjects/Hello Kindle/src/hello/kindle/HelloKindle.java:8: class Main is public, should be declared in a file named Main.java Any ideas as to what I could be doing wrong here? Thanks in advance for any advice! Edit: I figured it out - it should have been obvious in retrospect; it compiled when I remained the source file to Main.java Last edited by kdgarris; 06-08-2011 at 09:49 AM. Reason: Figured it out |
07-19-2011, 01:23 PM | #34 |
Member
Posts: 15
Karma: 10
Join Date: Jun 2011
Device: Kindle 3 3G/WIFI
|
Hey guys, I got this:
The title is not signed by a registered developer. How can I resolve it? Thanks. |
07-20-2011, 07:59 AM | #35 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
You need to install the keys you sign your .jar/.azw with. It's step 5 of the OP. Note that you might need to create a combined keystore if you have kindlets signed with different keys and you want to be able to run them all.
|
09-06-2011, 08:33 AM | #36 | |
Enthusiast
Posts: 30
Karma: 12
Join Date: Jun 2011
Location: India
Device: Kindle 3g
|
Quote:
|
|
09-06-2011, 01:38 PM | #37 |
Enthusiast
Posts: 30
Karma: 12
Join Date: Jun 2011
Location: India
Device: Kindle 3g
|
|
09-07-2011, 07:06 PM | #38 | |
Connoisseur
Posts: 50
Karma: 70
Join Date: Nov 2010
Device: Kindle DXG / Kindle 3
|
Quote:
I did this just use the same code as you. I build the hello world in eclipse. then I signed with developer.keystore from dvhh. then I copied my hello.azw2 to my kindle. The hello.azw2 is not show in HOME, so I reboot the kindle. after my kindle started up. it stuck in scan books... what's wrong? Thanks, Liuto |
|
09-08-2011, 08:19 AM | #39 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
That's hard to tell... Maybe just coincidence and you borked your FAT partition when copying over the file?
|
09-08-2011, 10:00 AM | #40 |
Connoisseur
Posts: 50
Karma: 70
Join Date: Nov 2010
Device: Kindle DXG / Kindle 3
|
|
09-08-2011, 11:22 AM | #41 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
Sorry, then I just didn't interpret your error description correctly. So it isn't completely stuck and you can still access the partition, it's just the scanning message that's not disappearing. I think you could try to enable debug output (";debugOn"), maybe it gives an idea what's going wrong.
|
09-08-2011, 12:13 PM | #42 | |
Connoisseur
Posts: 50
Karma: 70
Join Date: Nov 2010
Device: Kindle DXG / Kindle 3
|
Quote:
Could someone give me the exactly compile and package steps by using JDk (not eclipse or other IDE), I am really new to Java. I just have JDK 1.6.0_27 installed and prefer to use command line. Thanks, Liuto |
|
09-08-2011, 01:39 PM | #43 |
Connoisseur
Posts: 50
Karma: 70
Join Date: Nov 2010
Device: Kindle DXG / Kindle 3
|
Hi
I tried make the Hello world kindlet by JDK 1.6.0_27, after signed .awz2 file and copied to Kindle, it now shows my app on HOME screen. I tried to launch it but it just popup a box said: The Main Class for request title cannot be found. anybody could help me figure out the problem? below are my source files and build steps: 1. Main.java Code:
package test; import com.amazon.kindle.kindlet.AbstractKindlet; import com.amazon.kindle.kindlet.KindletContext; import com.amazon.kindle.kindlet.ui.KTextArea; public class Main extends AbstractKindlet { private KindletContext ctx; public void create(KindletContext context) { this.ctx = context; } public void start() { try { ctx.getRootContainer().add(new KTextArea("Hello World,lol!")); } catch (Throwable t) { t.printStackTrace(); } } } Code:
Manifest-Version: 1.0 Description: Test for Kindle Main-Class: test.Main Implementation-Title: Main Implementation-Version: 0.0.1 Implementation-Vendor: Liuto C:\xxx> javac Main.java I got Main.class without any error. 4. Jar it... Code:
C:\xxx> jar cvfm Main.jar Main.manifest Main.class added manifest adding: Main.class(in = 857) (out= 500)(deflated 41%) Code:
C:\xxx> signkindlet.bat -------------------------------------------------------------- C:\xxx>rename Main.jar Main.azw2 C:\xxx>C:\"Program Files"\Java\jdk1.6.0_27\bin\jarsigner.exe -keystore developer.keystore -storepass password Main.azw2 dktest C:\xxx>C:\"Program Files"\Java\jdk1.6.0_27\bin\jarsigner.exe -keystore developer.keystore -storepass password Main.azw2 ditest C:\xxx>C:\"Program Files"\Java\jdk1.6.0_27\bin\jarsigner.exe -keystore developer.keystore -storepass password Main.azw2 dntest Thanks, Nian Last edited by liuto; 09-08-2011 at 01:41 PM. |
09-08-2011, 03:17 PM | #44 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
I think the .class file should be in a directory according to the package it's in. The class loader is probably looking for a "test/Main.class" within the .jar. When you packaged it, you put it on the root directory of the .jar.
|
09-08-2011, 03:22 PM | #45 |
Connoisseur
Posts: 50
Karma: 70
Join Date: Nov 2010
Device: Kindle DXG / Kindle 3
|
I tried put .class in test directory, it got the same issue.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I write Kindlets? | nathansuchy | Kindle Developer's Corner | 3 | 11-17-2012 04:16 PM |
Kindlets crashing | ger1972 | Kindle Developer's Corner | 8 | 06-28-2012 11:26 PM |
Developing kindlets on the K4 NT | ger1972 | Kindle Developer's Corner | 10 | 06-15-2012 11:45 AM |
List of Kindlets available | inameiname | Kindle Developer's Corner | 27 | 04-14-2012 07:16 AM |
iLiad jharker:would you please write a guide on installing iLiadPowerManagement | tudou331100 | iRex Developer's Corner | 10 | 01-22-2009 11:19 PM |