wood burning stoves 2.0*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Command to run when files are in different package