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 08-17-2013, 06:14 AM   #1
CapitainDerya
Connoisseur
CapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensions
 
Posts: 56
Karma: 51304
Join Date: Sep 2012
Device: Kindle 4 NT,PW2
how to run kdk-emulator?

I downloaded this emulator but cant run on windows 7? May you give full instruction or how to because, i am newbie at java. I have problem with compiling source code, may you compile at your pc and attach it here?
code.google.com/p/kdk-emulator/‎
CapitainDerya is offline   Reply With Quote
Old 08-17-2013, 08:18 AM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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
Spoiler:
kdk-emulator-read-only/vavi-apps-kdkemulator/src/main/java/vavi/apps/kindlet

Appears to contain a viewer class and a set of the KDK (ish?) code

and then in

kdk-emulator-read-only/vavi-apps-kdkemulator/src/main/resources there appears to be a Kindle2 picture that is probably called to house the underlying code.

It runs like:

java vavi.apps.kindlet.KindletViewer your_Kindlet_class


The demo available is tetris, which would run like:

java vavi.apps.kindlet.KindletViewer vavi.games.tetris.TetrisApp

I am guessing you would run the command from the kdk-emulator-read-only/vavi-apps-kdkemulator/src/main/java directory but I am no expert.

https://code.google.com/p/umjammer/source/browse/trunk/ contains a raft of stuff to sort through.

The tetris KDK thing is in there

You could check out the lot like:
svn checkout http://umjammer.googlecode.com/svn/trunk/ umjammer-read-only (It's about 70mb)

Hope that helps.


It's junk don't use it

Last edited by twobob; 08-17-2013 at 10:46 AM.
twobob is offline   Reply With Quote
Advert
Old 08-17-2013, 08:47 AM   #3
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: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
It's pretty simple to build a jar from it (quick and dirty way):

Code:
svn checkout http://kdk-emulator.googlecode.com/svn/trunk/ kdk-emulator-read-only
cd kdk-emulator-read-only/vavi-apps-kdkemulator/src/main/java/
find . -name .svn -type d | xargs rm -rf
find . -name "*.java" | xargs javac -source 1.4 -target 1.4
cp ../resources/kindle2.png .
zip -9 -r vavi-kdemu.jar *
Then, to have the emulator run yourpackage.YourKindlet:
Code:
java vavi.apps.kindlet.KindletViewer yourpackage.YourKindlet
with the jar in the classpath.

I haven't tried it though. I much prefer running apps on the real device, if only to find possible quirks right away. But yeah, your choice.

UPDATE: Attachment removed. It's crap anyway.

Last edited by ixtab; 08-17-2013 at 10:32 AM.
ixtab is offline   Reply With Quote
Old 08-17-2013, 10:00 AM   #4
CapitainDerya
Connoisseur
CapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensions
 
Posts: 56
Karma: 51304
Join Date: Sep 2012
Device: Kindle 4 NT,PW2
Please, help! I am not able to solve this problem. May you give a HelloWorld example?
Example Issue;
I have got a helloworld app like this...
Spoiler:
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!"));
} catch (Throwable t) {
t.printStackTrace();
}
}
}

Using kindlet howtos of this forum, i compiled and converted it to azw2.
I am using this command in windows cmd:
java vavi-kdkemu.jar test.azw2
But no result...
CapitainDerya is offline   Reply With Quote
Old 08-17-2013, 10:19 AM   #5
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: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
The .azw2 is the complete packaged artifact that is meant to be deployed on a Kindle.

The emulator above works at the source code (well, "compiled source code" level).

You're running it in the completely wrong way. Java takes a class as the first argument to run, not a .jar file. And the "emulator app" takes another class as an argument, not an .azw2 file.

The following might work (on Windows):
java -cp "vavi-kdkemu.jar;test.azw2" vavi.apps.kindlet.KindletViewer test.Main

On Linux, use java -cp "vavi-kdkemu.jar:test.azw2" ...
ixtab is offline   Reply With Quote
Advert
Old 08-17-2013, 10:29 AM   #6
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: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
OK, forget it. I just tried it - this emulator doesn't work. Throws exceptions all over the place even for your simple hello world app. Use the real device instead.
ixtab is offline   Reply With Quote
Old 08-17-2013, 10:55 AM   #7
CapitainDerya
Connoisseur
CapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensionsCapitainDerya can understand the language of future parallel dimensions
 
Posts: 56
Karma: 51304
Join Date: Sep 2012
Device: Kindle 4 NT,PW2
Thanks, dude
CapitainDerya is offline   Reply With Quote
Old 08-20-2013, 12:22 PM   #8
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
Quote:
Originally Posted by ixtab View Post
OK, forget it. I just tried it - this emulator doesn't work. Throws exceptions all over the place even for your simple hello world app. Use the real device instead.
The page looks like the thing's for kindle 2 white
aditya3098 is offline   Reply With Quote
Old 08-20-2013, 12:33 PM   #9
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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
Yup.

Ancient.
twobob is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
'RUN, RUN, RUN' a crime thriller $1.61 tothepoint Self-Promotions by Authors and Publishers 10 09-01-2014 12:07 PM
Amazon's email about the KDK. KDK isn't here... yet. ziplizard Amazon Kindle 3 05-14-2010 12:25 AM
how to run a pgm in emulator? sivakamis HanLin eBook 2 10-30-2009 01:13 AM


All times are GMT -4. The time now is 12:01 AM.


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