This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Command to run when files are in different package
 
It's not a secret anymore!