Originally Posted by hornpipe2
Trying to build this for k2i from command line, but I can't seem to figure out how to make the classpath setup right.
* pull a .zip from github, here: https://github.com/AwakenHuman/ChineseChessForKindle
* unzip it, step into directory
Errors begin with:
[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] /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;
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.