I have a NetBeans java project.
This project (src folder) is composed of 6 .java files. The project also uses an external library library.jar and variouus jar files from apache commons (log,configurations etc..)
All java files (when compiled) are used by an external class.
Netbeans generate a build xml files.
<?xml version="1.0" encoding="UTF-8"?>
<project name="CityVisit" default="default" basedir=".">
<description>Builds, tests, and runs the project CityVisit.</description>
<import file="nbproject/build-impl.xml"/>
</project>
It refears to nbproject/build-impl.xml but inside of that file there is no reference to library.jar neither to other jars.
My problem is that if I try to compile with javac *.java it doesn't compiles and just print a long list of errors (probably because it can't find the external libraries).
Most of errors are like:
**can't find symbol <name> **
where is the name of a class/object incluided in one of the externals jar libraries.
How should I do? My goal is to be able to compile my code in another machine WITHOUT using an IDE like Eclipse,Netbeans etc..
As far as I understood the solution is to make a build file and deploy it using ant but practically how should I do?
Thank you in advance for any hint. Regards