My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
BuildingConsoleWebApplication  
Building the console web application.
Featured
Updated Aug 21, 2011 by jan.bar...@gmail.com

Build the Console Web Application

After checking out the i-jetty source, you will have the console application in $IJETTY_HOME/console, assuming $IJETTY_HOME represents where you checked out the code.

The console application consists of 2 maven subprojects:

  1. console/webapp
  2. console/apk

The former is the web application itself, specially built for Android. The latter is an Android installer application. This is for use by the i-jetty developers to allow us to release the webapp separately from core i-jetty so it can be conveniently downloaded from the Android Marketplace. You won't need to build that, although you can of course look at the app if you want.

Prerequisites

Are similar for core i-jetty:

  1. java
  2. maven
  3. Android SDK 1.6 or higher

However, in addition you must set an environment variable which indicates where the Android SDK is installed on your machine. For example, if I have installed the SDK at /opt/android/android-sdk-linux_86 then I would set:

export ANDROID_HOME=/opt/android/android-sdk-linux_86

Note: you need to set this environment variable appropriately for your operating system.

Building

cd $IJETTY_HOME/console
mvn clean install

This will produce a war file in $IJETTY_HOME/console/webapp/target, and also the apk in $IJETTY_HOME/console/apk/target (although as we mentioned, you're probably not interested in that).

Building with Eclipse

To build with Eclipse, you will first need to install the M2Eclipse plugin:

http://eclipse.org/m2e/

Then, use the Import->Existing Maven Projects menu option to import the console parent project with both its child projects. You will then have these Eclipse projects:

  1. console (the webapp)
  2. i-jetty-console-installer (the installer apk)
  3. console-parent (the parent project)

You can use the normal Eclipse mechanisms to build the console webapp.

NOTE: Ensure that you have your $ANDROID_HOME environment variable set when you launch Eclipse. If you are using a launcher to start the Eclipse executable on Ubuntu, depending on how you set up your environment variables you may need to do some extra configuration to ensure your environment vars are set. For example, you could write a small shell script to ensure that ANDROID_HOME is set before invoking Eclipse.

Comment by zuby...@gmail.com, Sep 11, 2012

hi i did all these steps can u tell in wich projcet(console,or ,ijeety console-installer or console-parent) we will change the code and can make download able web app ....and also tell can we change POM.XMl or keep it same as given

Comment by niketsha...@gmail.com, Mar 4, 2013

Hi

I want to know that how i will use aidl in I-jetty

Please help me

Comment by alexandr...@gmail.com, Apr 13, 2013

I tried to import the hello world app with eclipse, and got errors with the pom. Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.6:run (execution: copydex, phase: process-classes) Since I'm not experienced with maven (in fact I just hate this tool so much...) and there are a thousand variables (I don't use jetty for a decade, don't know where to start finding what is wrong!)...


Sign in to add a comment
Powered by Google Project Hosting