This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Command to run when files are in different package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Command to run when files are in different package" Watch "Command to run when files are in different package" New topic
Author

Command to run when files are in different package

Charles Chikito
Ranch Hand

Joined: May 22, 2009
Posts: 76
Hello there,

I can't figure out the commands to run the following files:

Goo.java


Sludge.java



Both my files are in C directory and I managed to compile them.

Goo.class is now in C:\book and Sludge.class is in C:\cert

How to run the Goo?

Source: K&B SCJP5 pg 28 - I changed the import statement to full path

Thanks

_charles
Ankur kothari
Ranch Hand

Joined: Sep 06, 2009
Posts: 531
c:\java book.Goo

will do it
Charles Chikito
Ranch Hand

Joined: May 22, 2009
Posts: 76
It works.

Thanks a lot.

_charles
 
GeeCON Prague 2014
 
subject: Command to run when files are in different package