You are in a directory above a directory named " lib", and any Jar files that your program needs are in that directory.īecause this fits my standard build directory structure, this works for me all the time.You are in a directory above a directory named " src", and src contains your ".So, if your Jar files are all where they should be, compiling from the command line is a breeze. The really nice thing this script does for you is to dynamically include all of the Jar files you need into your classpath. I thought I'd share this "java compile" shell script here today. On those occasions (which are very rare these days), I typically use a Linux shell script to compile my Java classes. Can you share an example of a Unix/Linux shell script that I can use to dynamically create a CLASSPATH so I can compile my Java source code files, where those files depend on JAR files? Introduction to the solutionįrom time to time circumstances come up where I don't have Ant or an Ant-based project to compile my Java programs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |