File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting classpath in linux.

 
Andrew Stallard
Ranch Hand
Posts: 33
  • 0
  • 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: 17624
39
Android Eclipse IDE Linux
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic