| Author |
ClassPath question
|
Rachel Glenn
Ranch Hand
Joined: Oct 24, 2012
Posts: 95
|
|
Suppose I have the following:
/mp/classes/player/musicplayer.class
and the current directory is set to /mp.
Why isn't the following invocation a valid way to run musicplayer.class ??
>> java -cp /mp/classes/player musicplayer
|
 |
Himai Minh
Ranch Hand
Joined: Jul 29, 2012
Posts: 292
|
|
Try this
>> java /mp/classes/player/musicplayer
If your main method is in musicplayer.java, java will look for it through the path you provide.
|
 |
 |
|
|
subject: ClassPath question
|
|
|