Link to home
Start Free TrialLog in
Avatar of thomas908
thomas908

asked on

Compiling java files in different packages with single javac command

i have java files in various package such as

com\pack1\pack2\pack3\one
com\pack1\pack2\pack3\one\a
com\pack1\pack2\pack3\one\a\b
com\pack1\pack2\pack3\one\a\b\c

com\pack1\pack2\pack3\two
com\pack1\pack2\pack3\two\a
com\pack1\pack2\pack3\two\b
com\pack1\pack2\pack3\two\c

I am compiling them as
javac com\pack1\pack2\pack3\one\*.java
javac com\pack1\pack2\pack3\one\a\*.java
javac com\pack1\pack2\pack3\one\a\b\*.java
..
javac com\pack1\pack2\pack3\two\*.java


I want to know is it possible to compile them with a single javac command(or may be lesser number of javac commands)
thanks
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial