Problem creating a project as a library

I can compile the AmbilWarna color picker Android library project without errors and have android.library=true in the project.properties file. When I run it, some of the classes are not found E.g.

12-12 14:13:19.317: E/AndroidRuntime(18360): Caused by: java.lang.NoClassDefFoundError: yuku.ambilwarna.R$styleable

styleable is a class inside the R Class and the R.class file is actually created and in the bin/classes directory. If I look at the bin/classes.jar file, the only .class files there are the ones created from the src directory. The ones created by the build, such are R, are not present. I have a nbandroid directory in the project.