Where is cordova-2.7.0.jar?

android, cordova, eclipse

Solution

I finally found a solution following the github doc https://github.com/apache/cordova-android#building

First, you need the `commons-codec-1.7.jar` file. It's downloaded to cordova-android using `create` : Check http://cordova.apache.org/docs/en/2.7.0/guide_getting-started_android_index.md.html

create <project_folder_path> <package_name> <project_name>"

- `project_folder_path` is the path to your new Cordova Android project

- `package_name` is the package name, e.g. com.YourCompany.YourAppName

- `project_name` is the project name, e.g. YourApp (Must not contain spaces)

This process should download `commons-codec-1.7.jar`.

Then, the following step is not explained in the getting started guide: `cordova-2.7.0.jar` has to be generated with an ant command line, after having copied the `commons-codec-1.7.jar` to the framework/lib directory.

android update project -p . -t android-17
ant jar

And here we go!

Problem

I struggle to build a first Android app from HTML5. So, I follow this detailed tutorial... It seems that I should add a .jar of Cordova to the project's libs folder, in order to be able to call Cordova's functionnalities in my app.java file. However, I can't find this cordova-2.7.0.jar file anywhere. Maybe shall I generate it? Therefore I tried an other option, by creating the project from the command line tool following the official getting started guide, but there's no cordova.jar either in the generated project files. I feel Cordova is not so easy to handle at first... (By the way, I'm also looking for a Cordova JS file...) EDIT: To answer to poiuytrez, here is my cordova package, downloaded from http://cordova.apache.org/

Original source