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

classpath problem.

sharma ishu
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given the following directory structure:





And given the contents of and

public class GetJar{
public static void main(String[] args){

package myApp;
public Foo{ public static int d=8;}

The cirrent directory is "test", and myApp/Foo.class is placed in aJAR file called MyJar.jar located in test.

How did the following invocation work?

java GetJar

This is question number 11 from chapter 10 of book "SCJP 6 by Kethy and Bates".
Please answer my question.
gurpeet singh
Ranch Hand
Posts: 924
Fedora Java Netbeans IDE
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic