4/6/2023 0 Comments Apache ant ubuntu![]() ![]() Verify that apache-ant is properly configured for version 1.6. Update-alternatives -install /usr/bin/ant ant /usr/share/apache-ant-stock/bin/ant 3Ĭonfigure alternatives to use the apache-ant-1.6.5 binary directory:Ĭonfigure alternatives to use the apache-ant-1.6.5 binaries to provide ant: Update-alternatives -install /usr/bin/ant ant /usr/share/apache-ant-1.8.2/bin/ant 2Īdd the “stock” executable to alternatives: Map the /usr/share/apache-ant-1.8.2/bin/ant executable to /usr/bin/ant: To avoid complications, we can install Java from the official Ubuntu repositories. It requires Java to run and therefore needs to be installed. Update-alternatives -install /usr/bin/ant ant /usr/share/apache-ant-1.6.5/bin/ant 1 Install Apache Ant on Ubuntu 20.04 1.- Install Java on Ubuntu 20.04 Apache Ant is a Java technology. Use alternatives to the map /usr/share/apache-ant-1.6.5/bin/ant executable to /usr/bin/ant: collection of tasks, types and other tools for Apache Ant collection of tasks. Update-alternatives -install /usr/share/ant ant-bins /usr/share/apache-ant-stock 3 How to install ant-contrib ubuntu package on Ubuntu 20.04/Ubuntu. ![]() xxxxxx-desktop: ant -version Apache Ant version 1.7.1 compiled on NovemIt means configuration is Ok. Ant Installation in Ubuntu Operating System. Re-add the “stock” apache-ant binaries to be provided by alternatives: If you configured correctly, the terminal must show following note with the command ant version. Apache Ant Installation with Introduction, features, installation, hello world, projects, targets, tasks. Update-alternatives -install /usr/share/ant ant-bins /usr/share/apache-ant-1.8.2 2 Install Java on Ubuntu 20.04 Apache Ant is a Java technology. Update-alternatives -install /usr/share/ant ant-bins /usr/share/apache-ant-1.6.5 1 Use alternatives to map /usr/share/apache-ant-1.6.5 to /usr/share/ant, which is Ubuntu’s default location for the apache-ant binaries: Test -f /usr/share/ant || sudo mv /usr/share/ant /usr/share/apache-ant-stock Repeat for apache-ant-1.8.2 (or any other version you may need):Ĭheck if apache-ant is already installed and move its binaries to the “stock” directory: Here is how you can use alternatives to install and configure apache-ant. This utility can be found in many Linux distributions however, this guide was specifically written for and tested on Ubuntu 11.10. Ubuntu Linux comes with alternatives – a command-line utility to create and maintain symbolic links to default commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |