As far as I know, Eclipse does not issue a shell command to compile or create a JAR file. Instead, it uses the appropriate Java API.
What I regularly use to do this work is ant ( http://ant.apache.org ).
Here is a very simple build.xml file that takes java sources in the "src" directory, compiles them using the libraries in the "lib" directory and puts the resulting classes in the "project.jar" file.
<?xml version="1.0" encoding="UTF-8"?> <project name="project"> <target name="package" description="builds the jar file from the compiled classes"> <mkdir dir="build" /> <javac srcdir="src" destdir="build"> <classpath> <fileset dir="lib" includes="**/*.jar" /> </classpath> </javac> <jar destfile="project.jar"> <fileset dir="build" includes="**/*.classes" /> </jar> </target> </project>
source share