This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Suppose that we are in the test folder.
How would we compile both file.
to compile Foo.java we would cd to the test folder and
How would we compile the GetJar.java. Since its in a different package. The solution given in the book says
//Place into test a jar file that contains MyApp/Foo.class
javac -classpath MyJar.jar GetJar.java
But its not working. It does work if i remove the package statement from the Foo class. In the GetJar.java file Foo.d is accessed without importing the MyApp package. Is the question correct. I have tried to replicate the question as closely as possible.