This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading Chapter 10 to Grasp Chapter 1 public, protected, private mechanisms

 
Sandra Bachan
Ranch Hand
Posts: 434
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm reading Sierra/Bates and to understand the public, protected, private mechanisms used across multiple files in multiple packages, I am interested in understanding how to compile multiple files. Since I am unable to grasp this concept at Chapter 10, I studied several links, one of which is:

http://javaworkshop.sourceforge.net/chapter3.html

I followed the directions for creating and compiling the file, even using the same directory structure. When I type in the following command to compile:



I get this:



What does this error mean?
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This error means that the directory path you gave doesn't exists. Are you executing this command from the parent directory of src directory i.e. test directory?? And did you properly place the java files in the test/src/com/mycompany/myproject/ directory??
 
Sandra Bachan
Ranch Hand
Posts: 434
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gosh, that was pretty obvious

I guess I was confusing this with setting up packages, i.e. I was under the impression that I had to create a path test/src/com/example/graphic, but no, the class files will go into test/classes/com/example/graphic, while the source files go under test/src/com/mycompany/myproject

When the .java files get compiled using the command in the common test directory, the class files go under /classes/.../graphic.


Wow, I've been ruminating over this all week!

Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic