1.1 Install maven
Download the latest maven package from the official website http://maven.apache.org/download.html, unzip it and put it in a directory.
(linux: /usr/local/apache-maven-3.0.4; windows: c:\apache-maven-3.0.4);
1.2 install android sdk
p>
linux: /Users/guanjianjun/android-sdks
Windows: c:\program files\android\android-sdk< /p>
1.3 Install jdk
1.4 Set environment variables
Linux:
export M2_HOME=/usr/local /apache-maven-3.0.4
export M2=$M2_HOME/bin
export MAVEN_OPTS=”-Xms256m -Xmx512m”
export ANDROID_HOME=/Users /guanjianjun/android-sdks
export PATH=$M2:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:/opt/local/bin:/opt/local/sbin:/usr/local/ mysql/bin:$PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib :$JAVA_HOME/lib/tools.jar
Windows:
In’My Computer’->’Properties’->’Advanced System Settings’ ->’Advanced’ ->’Under Environment Variables’ add the following environment variables.
ANDROID_HOME=C:\Program Files\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_07
CLASSPATH= %JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
M2_HOME=C:\apache-maven-3.0.4
M2=%M2_HOME%\bin
p>
MAVEN_OPTS=” -Xms256m -Xmx512m”
Add after PATH
%JAVA_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools ;%M2%
After setting up the environment according to the above steps, enter the i-jetty-3.1 directory under the command line and enter the command directly:
>mvn clean install p>
** If nothing happens, the apk can be generated.
1 Install the ADT, Android SDK, m2eclipse, Maven, JDK, and configure environment variables
Because i-jetty-3.1 is a maven-based project, it can be compiled in eclipse or command line mode, but the corresponding environment needs to be set.
The following is a detailed description of the i-jetty compilation steps in command line mode:
1.1 Install maven
Download the latest maven package from the official website http://maven.apache.org/download.html, unzip it and place it in a directory.
(linux: /usr/local/apache-maven-3.0.4; windows: c:\apache-maven-3.0.4);
1.2 install android sdk
p>
linux: /Users/guanjianjun/android-sdks
Windows: c:\program files\android\android-sdk< /p>
1.3 Install jdk
1.4 Set environment variables
Linux:
export M2_HOME=/usr/local /apache-maven-3.0.4
export M2=$M2_HOME/bin
export MAVEN_OPTS=”-Xms256m -Xmx512m”
export ANDROID_HOME=/Users /guanjianjun/android-sdks
export PATH=$M2:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:/opt/local/bin:/opt/local/sbin:/usr/local/ mysql/bin:$PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib :$JAVA_HOME/lib/tools.jar
Windows:
In’My Computer’->’Properties’->’Advanced System Settings’ ->’Advanced’ ->’Under Environment Variables’ add the following environment variables.
ANDROID_HOME=C:\Program Files\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_07
CLASSPATH= %JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
M2_HOME=C:\apache-maven-3.0.4
M2=%M2_HOME%\bin
p>
MAVEN_OPTS=” -Xms256m -Xmx512m”
Add after PATH
%JAVA_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools ;%M2%
After setting up the environment according to the above steps, enter the i-jetty-3.1 directory under the command line and enter the command directly:
>mvn clean install p>
** If nothing happens, the apk can be generated.
1 Install the ADT, Android SDK, m2eclipse, Maven, JDK, and configure environment variables
You can also compile i-jetty in eclipse, the simple steps are as follows:
# maven build ijetty in eclipse http://orgcent.com/m2eclipse-maven -android-ijetty/
1 Install the ADT, Android SDK, m2eclipse, Maven, JDK, and configuration environment variables
Refer to the above content in detail. 2 Download and import Eclipse source code for i-jetty: http://code.google.com/p/i-jetty/downloads/list 3 Use Import->Maven->Existing Maven Projects to import i-jetty’s Maven project and compile the Maven project under Eclipse ijetty-parent Run as -> maven clean -> maven install is fine.