help building Hello World for replicant sdk
PaulK
paulk at paulk.fr
Tue Jul 5 19:57:16 UTC 2011
Hi
Le mardi 05 juillet 2011 à 06:46 -0500, Scott N. Walck a écrit :
> I'm trying to build the "Hello, World" app described in
> android-sdk_eng.gnutoo_linux-x86/docs/resources/tutorials/hello-world.html
> for use with the replicant sdk.
>
> I downloaded the replicant sdk from
> http://ftp.osuosl.org/pub/replicant/sdk/0001/sdk/replicant-sdk_eng.gnu_linux-x86.zip
> and unzipped it.
>
> I created a project and put in the Hello, World source code.
>
> When I try to use ant to build the thing, I start to run into problems.
>
> First, ant seems to want a directory that's missing:
>
> I go ahead and make the directory it wants. Now it wants ant_rules_r2.xml:
>
> I copy ant_rules_r2.xml from tools/ant/ant_rules_r2.xml into the
> directory where it seems to want it, and try again:
These errors are now fixed on replicant source code and I planned to
make another sdk release with the fix. Sorry for the inconvenience.
> > BUILD FAILED
> > /usr/local/walck-src/replicant/sdk/android-sdk_eng.gnutoo_linux-x86/platforms/android-2.2.1/ant/ant_rules_r2.xml:293: The following error occurred while executing this line:
> > /usr/local/walck-src/replicant/sdk/android-sdk_eng.gnutoo_linux-x86/platforms/android-2.2.1/ant/ant_rules_r2.xml:156: java.lang.NoClassDefFoundError: com/android/jarutils/DebugKeyProvider$KeytoolException
>
> > Total time: 2 seconds
>
> Now I'm not sure what to do. Any suggestions?
I was able to reproduce the error on a 32b computer running trisquel and
openjdk 6. I don't have time to investigate right now but I'll try to
help finding a solution tomorrow.
That thread on the Android Beginners list:
http://groups.google.com/group/android-beginners/browse_thread/thread/5bbfbafbb4c15535?fwc=1
concludes that the problem comes from the keytool that is part of
OpenJDK. Though, I'm using OpenJDK on a 64b computer running fedora
(with a custom 64b build of the sdk) and I never had such a problem
while running ant debug.
I plan to test with the Google SDK tomorrow in order to determine if the
problem comes from Replicant SDK or not.
--
Paul Kocialkowski
* Site web : <http://www.paulk.fr/>
* Blog : <http://blog.paulk.fr>
More information about the Replicant
mailing list