I understand that -d option is used to tell compiler in which directory to put the .class file. I consider the example from
SCJP Sun Certified Programmer for
Java 6 Study Guide by Katherine Sierra and Bert Bates (K&B) Page number 793. In this example, there is a command
"javac -d ../classes com/wickedlysmart/MyClass.java" and the current director is myProject/source. my question is if we change the current directory to myProject/source/com then can we use three dots after -d option like as
"javac -d .../classes com/wickedlysmart/MyCass.java" to put class file in classes directory or there is any other way to do it.
here is the example:
package com.wickedlysmart; // change to package wickedlysmart
public class MyClass{ }
myProject
|
| ---source|-------com*|--------wickedlysmart|-----MyClass.java
|
|------classes|