Ant入门学习一(Ant的安装)
2012-07-19 14:53
316 查看
一:Setup
1.Add the
2.Set the
3.Optionally, set the
Operating System-specific instructions for doing this from the command line are in the Windows, Linux/Unix (bash), and Linux/Unix (csh) sections. Note that using this method, the settings will only be valid for the command line session you run them in.
Note: Do not install Ant's ant.jar file into the lib/ext directory of the JDK/JRE. Ant is an application, whilst the extension directory is intended for JDK extensions. In particular there are security restrictions on the classes which may be loaded by an extension.
二:Check installation
You can check the basic installation with opening a new shell and typing ant. You should get a message like this
简单来说就是:
一、创建环境变量:ANT_HOME = I:\apache-ant-1.8.4
在Path里面加入:%ANT_HOME%\bin
确保你电脑里安装了JDK并配置好了环境变量
二、打开命令行窗口,键入ant -version 回车
C:\Users\wieco>ant -version
Apache Ant(TM) version 1.8.4 compiled on May 22 2012
表示咱装成功!
1.Add the
bindirectory to your path.
2.Set the
ANT_HOMEenvironment variable to the directory where you installed Ant. On some operating systems, Ant's startup scripts can guess
ANT_HOME(Unix dialects and Windows NT/2000), but it is better to not rely on this behavior.
3.Optionally, set the
JAVA_HOMEenvironment variable (see the Advanced section below). This should be set to the directory where your JDK is installed.
Operating System-specific instructions for doing this from the command line are in the Windows, Linux/Unix (bash), and Linux/Unix (csh) sections. Note that using this method, the settings will only be valid for the command line session you run them in.
Note: Do not install Ant's ant.jar file into the lib/ext directory of the JDK/JRE. Ant is an application, whilst the extension directory is intended for JDK extensions. In particular there are security restrictions on the classes which may be loaded by an extension.
二:Check installation
You can check the basic installation with opening a new shell and typing ant. You should get a message like this
Buildfile: build.xml does not exist! Build failedSo Ant works. This message is there because you need to write an individual buildfile for your project. With a ant -version you should get an output like
Buildfile: build.xml does not exist! Build failed
简单来说就是:
一、创建环境变量:ANT_HOME = I:\apache-ant-1.8.4
在Path里面加入:%ANT_HOME%\bin
确保你电脑里安装了JDK并配置好了环境变量
二、打开命令行窗口,键入ant -version 回车
C:\Users\wieco>ant -version
Apache Ant(TM) version 1.8.4 compiled on May 22 2012
表示咱装成功!
相关文章推荐
- CAS入门学习— 安装与配置
- Nodejs入门学习,nodejs web开发入门,npm、express、socket配置安装、nodejs聊天室开发
- docker技术学习-安装和入门基本操作
- 学习淘淘商城第十一课(dubbo入门及单机版zookeeper安装)
- Tensorflow 入门学习1 pip安装
- nginx入门学习—— 在已安装好的nginx上添加nginx_upstream_check_module模块(三)
- 用MXnet入门实战深度学习之一:安装GPU版mxnet并跑一个MNIST手写数字识别
- MySQL入门学习(一)安装篇
- Linux系统入门学习:教你在VirtualBox 安装 Ubuntu 15.04
- 深度学习入门:详解 Ubuntu 下 PaddlePaddle 源码编译安装
- 安装虚拟机以及学习Linux基础入门
- 机器人操作系统ROS Indigo 入门学习(1)——安装ROS Indigo
- Linux入门学习教程:在Ubuntu 14.04中安装使用搜狗拼音输入法
- Docker入门学习(2)----Docker安装和第一个hello-world
- 【Node.js入门】学习之安装
- Android NDK的入门学习过程(安装和helloJNI例程)
- 安装Android模拟器Genymotion【Android学习入门】
- jQuery入门学习之安装及语法
- 安卓入门学习(一)环境的安装与配置
- 用MXnet入门实战深度学习之一:安装GPU版mxnet并跑一个MNIST手写数字识别