• Post Reply Bookmark Topic Watch Topic
  • New Topic

PATH and CLASSPATH  RSS feed

 
Leigh Efford
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've read the other posts on this matter, but I am just curious, I am currently using Textpad to compile and run my java files which seems to work fine. Does anyone know if I should still set the PATH and CLASSPATH environment variables via the control panel in windows XP?

Cheers, Leigh
 
Nigel Browne
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I personally set the PATH for my user profile, but set the classpath in my build scripts. This way I can have full control of the JAR files and the packages that make up my application and can place them where I feel is appropriate.
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a beginner, I made sure that I centralized all of my work and created a CLASSPATH entry to point to my C:\user\java\sources directory, where all of my java work went. Then, no matter what tool I was using (even the command prompt) I was sure to find my classes.

Now that I have many different projects, I set the classpath for each project in the build script. But I still have the one directory that is referenced as an environment variable that I use sort of as a Java "junk drawer."
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!