A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
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.
I agree. Here's the link:
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