Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!

# question on package and classpath

Greenhorn
Posts: 15
i've created 3 classes as

package root.dirA
classA
{

}
similarly classB,classC and place classfile in directories dirA,dirB,dirC respectively
now my class is set in environment variable c:\program files\java\jdk1.5\bin;

the root directory is in A directory i want to use -cp and i execute the classA,classB,classC with different combinations of -cp i can use?

Ankit Garg
Sheriff
Posts: 9521
22
aniruddha panadare wrote:now my class is set in environment variable c:\program files\java\jdk1.5\bin;

I didn't understand this. Did you set the classpath environment variable to this or the path environment variable. You don't need to set the classpath environment variable to this directory...

Greenhorn
Posts: 15
Ankit Garg wrote:
aniruddha panadare wrote:now my class is set in environment variable c:\program files\java\jdk1.5\bin;

I didn't understand this. Did you set the classpath environment variable to this or the path environment variable. You don't need to set the classpath environment variable to this directory...

in systems environment variables i.e
MyComputer
|
properties
|