Monday, October 1, 2007

setting path variables in linux/unix

Well guys, i finally found out how to set the path variables in unix bash. I was actually trying to run a java program through unix console that i came upon this problem. The way we are actually going to set them.. 1) firstly we need to set the classpath for all the external libraries that we are using export classpath=$classpath:library1:library2: etc.. The term in the classpath can be any name that you would like your external libraries to be called. 2) Secondly we need to assign all the classpath variables to the global path of the entire system PATH=$classpath:$PATH Where the classpath is going to be the classpath that we have assigned in the export phase. Well guys that is all for now... hopefully i could get something good and more interesting from my next post..