• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems with K&B chapter 10, question 10

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, i have a problem with the K&B book, selftest chapter 10, question 10.

There are three versions of MyClass.java in
/foo/bar
/foo/bar/baz and
/foo/bar/baz/bing
The command is invoked from /foo:
javac -classpath /foo/bar/baz/bing:/foo/bar MyClass.java.

The answer is:
The version in /foo/bar/baz/bing is compiled.
I tried it, and it didn't compile. And thats, what i expected, because the compiler can't find the file. It doesn't matter, what the classpath is, because the file is not in the active directory.
I didn't find anything about this question in the forum, perhaps i missed something.

Gru�
J�rg
 
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi J�rg,

You are correct. Please check this thread out.

It was a good discussion about this question. For sure you will have your doubts solved.

Please check also the Aleksander Zielinski's post which gives a good idea how this question works.

Best Regards.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic