| Author |
How to compile a java file in a different directory location from the original java directory?
|
sunil sains
Greenhorn
Joined: Mar 24, 2009
Posts: 1
|
|
Hi Guys...
My .java file has the location, MyName/src/Bean.java.
My question is when I compile this .java file, I want its .class file to be saved automatically in a different location which is, MyName/WEB-INF/classes/newBean/Bean.class
and not in the same location as the .java file
How do I make that happen?
I was wondering if this has got something to do with the package.
Please correct me if I am wrong.
Kindly share your inputs.
Thank you for your time.
Sunil.
|
 |
Moojid Hamid
Ranch Hand
Joined: Mar 07, 2009
Posts: 120
|
|
|
-d <directory> Specify where to place generated class files
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32654
|
|
And welcome to JavaRanch
|
 |
 |
|
|
subject: How to compile a java file in a different directory location from the original java directory?
|
|
|