How to compile a java file in a different directory location from the original java directory?
Joined: Mar 24, 2009
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.
Joined: Mar 07, 2009
-d <directory> Specify where to place generated class files