A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
Programmer Certification (SCJP/OCPJP)
Joined: Oct 24, 2012
Feb 25, 2013 17:26:40
Suppose I have the following:
and the current directory is set to
Why isn't the following invocation a valid way to run musicplayer.class ??
-cp /mp/classes/player musicplayer
Joined: Jul 29, 2012
Feb 26, 2013 07:59:15
>> java /mp/classes/player/musicplayer
If your main method is in musicplayer.java, java will look for it through the path you provide.
Have you checked out
subject: ClassPath question
Mock Exam Question Doubt, 36: 74 from K&B CD
Mock question on classpath
Another Error in Master Exam...
K&B Maste Exam Question on classpath
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015