View Single Post
Old 05-11-2013, 02:01 PM   #167
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
Quote:
Originally Posted by hornpipe2 View Post
Trying to build this for k2i from command line, but I can't seem to figure out how to make the classpath setup right.
Steps:
* pull a .zip from github, here: https://github.com/AwakenHuman/ChineseChessForKindle
* unzip it, step into directory
* ant

Errors begin with:
Code:
-do-compile:
    [javac] Compiling 15 source files to /Users/grkenn/src/ChineseChessForKindle-master/build/classes
    [javac] /Users/grkenn/src/ChineseChessForKindle-master/src/vn/vhn/amazon/kindle/chinesechess/Main.java:8: package com.amazon.kindle.kindlet does not exist
    [javac] import com.amazon.kindle.kindlet.AbstractKindlet;
    [javac]                                 ^
    [javac] /Users/grkenn/src/ChineseChessForKindle-master/src/vn/vhn/amazon/kindle/chinesechess/Main.java:9: package com.amazon.kindle.kindlet does not exist
    [javac] import com.amazon.kindle.kindlet.KindletContext;
    [javac]                                 ^
I tried putting a copy of the Kindle .jar files in *every single folder under the root* and it still failed to find, so I guess it's referring to an external location above the project folder. But I'm a totally clueless monkey when it comes to working with Java + Ant so I have no idea how to change the CLASSPATH to the correct location.
Just put the Kindlet-*.jar somewhere and add it to your classpath, and it'll work.

Don't just put it anywhere ("every single folder under the root"), but know what you are doing and why you are doing it that way. It will work if you set up and configure everything correctly.

Last edited by ixtab; 05-11-2013 at 02:04 PM.
ixtab is offline   Reply With Quote