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
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Command to run when files are in different package
 
Similar Threads
doubt in package; compiling
Public Members access
Compiling multiple source files
Package problem
compiling package with import statement