Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Recursive Compilation

843810Jul 25 2004 — edited Nov 30 2006
How to do recursive compilation ?
Is it possible using javac?

Ex:
I have a package structure


Directory Structure

test/exam/teachers/students/marks

test/exam:

example1.java
example2.java

test/exam/teachers

example3.java
example4.java


test/exam/teachers/students

example5.java
example6.java

test/exam/teachers/students/marks
example7.java

I want to compile the whole package at a time(ie) all the java files in their respective subdirectories

javac test *.java

How to do this type of recompilation ???

I tried using @filename.... But that works only if i mention the path of each file seperartely... Is it the only way ???




Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 28 2006
Added on Jul 25 2004
4 comments
360 views