This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Command to run when files are in different package
 
Similar Threads
Public Members access
Package problem
compiling package with import statement
doubt in package; compiling
Compiling multiple source files