• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

question on package and classpath

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?




 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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...
 
aniruddha panadare
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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??
 
reply
    Bookmark Topic Watch Topic
  • New Topic