aspose file tools*
The moose likes Beginning Java and the fly likes question on package and classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "question on package and classpath" Watch "question on package and classpath" New topic
Author

question on package and classpath

aniruddha panadare
Greenhorn

Joined: Dec 23, 2008
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

Joined: Aug 03, 2008
Posts: 9280
    
  17

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...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
aniruddha panadare
Greenhorn

Joined: Dec 23, 2008
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
|
advanced
|
Environment variables
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

I know what environment variables are but the main question is, did you set the CLASSPATH environment variable to
c:\program files\java\jdk1.5\bin;
or the PATH environment variable??
 
Don't get me started about those stupid light bulbs.
 
subject: question on package and classpath
 
Similar Threads
Inheritance
invoking super constructors.
Parsing a variable