I’m trying to install opencv on my centos 8 server to be used by java program. I followed the instructions here. after configuring opencv, I get the following result: I have already installed java on my server (by using sudo dnf install java-11-openjdk-devel, but I have not installed ant). in order to m…
Tag: ant
Zip command on Linux includes whole folder structure
I’m currently incorporating continuous integration on a project I’m working on at work using Bamboo. We are using ANT scripts to do the build automation, and as the final task we’re using the linux Zip command to create a release zip file. The problem is that the zip file contains the whole …
Correct version of Ant not being picked by Linux
I get this really annoying message when working with ant on Linux. I export my ANT_HOME=/home/ganesh/org.apache.ant_1.9.2.v201404171502/bin Then i modify my path such as export PATH=$ANT_HOME:$PATH. But then when i run ant i get the error as Error: Could not find or load main class org.apache.tools.ant.launch…
Compare time-stamp of a remote file with a local file using Ant
I have an installer file on my remote machine with Installer-000.zip name and i want to copy that file into my local machine(linux-CentOS) under /media/Data/Installer/ directory using ant ftp task. I am able to copy the installer from remote server to my machine if the installer is not already present in my m…
Exec command in Ant only executes first command
I want to list the permission of every script in directory dir/bin. But the below command only runs “ls” in the directory where the script is with below code rather than every script in dir/bin. Since script.xml is there in maindir, it just does a ls inside maindir. There are 2 problems: Performin…
How to correctly include the support library in non-Eclipse Android application
I am thinking how to get Android’ s support library to include and compile outside Eclipse. I am using Linux as my build environment and I am not using any IDE for creating apps, only the basic Android SDK. I have only come over answers to this question regarding Eclipse, but how can I do it using only …
error=2, No such file or directory at java.lang.ProcessBuilder.start
I’m using Fedora 18 and JDK 1.7.13 installed in /usr/java. All executable files under bin folder have -rwxr-xr-x permission. I set both ANT_HOME and JAVA_HOME in my ~/.bashrc as: and I have a build.xml file which says: but after running ant I got this exception: /home/m/workspace/build.xml:58: Execute f…
ant: warning: unmappable character for encoding UTF8
I have seen numerous of questions like mine but they don’t answer my question because I’m using ant and I’m not using eclipse. I run this code: ant clean dist and it tells me numerous times that warning: unmappable character for encoding UTF8. I see on the Java command that there is a -encod…
Ant unable to find javac, JAVA_HOME won’t set on Ubuntu
I have an Android Project called Hello on my Ubuntu 10.04 i386 Server (headless). It contains all things an Android project folder should have. I first build the project in bash while in the Project folder using this synax: then I try to build the .apk with ant like so: I get this error: which is very confusi…