Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting classpath in linux.

 
Andrew Stallard
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have RedHat Linux, and I want to set the classpath for my junit utility. According to your faq I should have a file called .bash_profile in my home directory. However, I can't find it anywhere. In addition, I tried creating this file in my home directory and running it as a shell script. I tried:



This does nothing. How can I do this?

Thank You for Responding

Andrew Stallard
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't set CLASSPATH in my $HOME/.bash_profile. Which is a file you'll only have if bash is your command shell. ksh and csh have their own login scripts.

The reason I don't set CLASSPATH there is that usually I set classpaths on a per-program basis.

However, my bash profile does set JAVA_HOME and adds JAVA_HOME/bin to the PATH. Also ANT_HOME and MAVEN_HOME.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic