08-17-2013, 06:14 AM | #1 |
Connoisseur
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/ |
08-17-2013, 08:18 AM | #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
|
Spoiler:
It's junk don't use it Last edited by twobob; 08-17-2013 at 10:46 AM. |
Advert | |
|
08-17-2013, 08:47 AM | #3 |
(offline)
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 * Code:
java vavi.apps.kindlet.KindletViewer yourpackage.YourKindlet 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. |
08-17-2013, 10:00 AM | #4 |
Connoisseur
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:
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... |
08-17-2013, 10:19 AM | #5 |
(offline)
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" ... |
Advert | |
|
08-17-2013, 10:29 AM | #6 |
(offline)
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.
|
08-17-2013, 10:55 AM | #7 |
Connoisseur
Posts: 56
Karma: 51304
Join Date: Sep 2012
Device: Kindle 4 NT,PW2
|
Thanks, dude
|
08-20-2013, 12:22 PM | #8 |
Guru
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
|
08-20-2013, 12:33 PM | #9 |
( ͡° ͜ʖ ͡°){ʇ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
|
Yup.
Ancient. |
|
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 |