A
arun.hallan
My java application includes source files in packages, and jar
library's in a lib directory.
I have created a windows batch file that compiles all and then runs the
application.
It is in the form of "javac classpath[jar files] [all package folders]
java classpath[jarfiles] [MainClass]"
The batch file is as so:
___________________________________________________________________
javac -classpath
"lib\jdom.jar;lib\ant.jar;lib\ant-launcher.jar;lib\liquidlnf.jar;lib\tools.jar"
antigen\builders\*.java antigen\config\*.java
antigen\datastructure\*.java antigen\gui\*.java antigen\io\*.java
antigen\listeners\*.java antigen\wizard\*.java
java -classpath
".;lib\jdom.jar;lib\ant.jar;lib\ant-launcher.jar;lib\liquidlnf.jar;lib\tools.jar"
antigen.config.Antigen
____________________________________________________________________
I have attempted to create a unix version of this (well i have tried to
make it work in mac os 10).
I have created a script that will run when i call "source BatchFile"
from the command prompt.
The script is as follows:
______________________________________________________________________
javac -classpath
/lib/jdom.jar:/lib/ant.jar:/lib/ant-launcher.jar:/lib/liquidlnf.jar:/lib/tools.jar
antigen/builders/*.java antigen/config/*.java
antigen/datastructure/*.java antigen/gui/*.java antigen/io/*.java
antigen/listeners/*.java antigen/wizard/*.java
java -classpath
".;/lib/jdom.jar;/lib/ant.jar;/lib/ant-launcher.jar;/lib/liquidlnf.jar;/lib/tools.jar"
antigen.config.Antigen
______________________________________________________________________
Java attempts to compile the source, but it doesnt include the jar
files in the classpath. Therefore i get a lot of library specific
errors.
Does anyone know why? Does unix work with the classpath differently?
Can someone help me create a batch file for a unix system.
Thanks
PS I do not want to use a build tool, as the whole point of the
application is to allow use of ant without installing it.
library's in a lib directory.
I have created a windows batch file that compiles all and then runs the
application.
It is in the form of "javac classpath[jar files] [all package folders]
java classpath[jarfiles] [MainClass]"
The batch file is as so:
___________________________________________________________________
javac -classpath
"lib\jdom.jar;lib\ant.jar;lib\ant-launcher.jar;lib\liquidlnf.jar;lib\tools.jar"
antigen\builders\*.java antigen\config\*.java
antigen\datastructure\*.java antigen\gui\*.java antigen\io\*.java
antigen\listeners\*.java antigen\wizard\*.java
java -classpath
".;lib\jdom.jar;lib\ant.jar;lib\ant-launcher.jar;lib\liquidlnf.jar;lib\tools.jar"
antigen.config.Antigen
____________________________________________________________________
I have attempted to create a unix version of this (well i have tried to
make it work in mac os 10).
I have created a script that will run when i call "source BatchFile"
from the command prompt.
The script is as follows:
______________________________________________________________________
javac -classpath
/lib/jdom.jar:/lib/ant.jar:/lib/ant-launcher.jar:/lib/liquidlnf.jar:/lib/tools.jar
antigen/builders/*.java antigen/config/*.java
antigen/datastructure/*.java antigen/gui/*.java antigen/io/*.java
antigen/listeners/*.java antigen/wizard/*.java
java -classpath
".;/lib/jdom.jar;/lib/ant.jar;/lib/ant-launcher.jar;/lib/liquidlnf.jar;/lib/tools.jar"
antigen.config.Antigen
______________________________________________________________________
Java attempts to compile the source, but it doesnt include the jar
files in the classpath. Therefore i get a lot of library specific
errors.
Does anyone know why? Does unix work with the classpath differently?
Can someone help me create a batch file for a unix system.
Thanks
PS I do not want to use a build tool, as the whole point of the
application is to allow use of ant without installing it.