Wednesday, 9 March 2011

Setup Java classpath in Linux

For windows, i simply setup the classpath using environment variables.

In linux, i need to manually write in the filepath in ./bashrc(SUSE) or ./bash(slackware)
Use the vi editor to add in the lines

These are some of the classpath i need to set in my linux machine:
export PATH = /home/chongming/jdk1.5/bin:/home/chongming/maven/bin:$PATH
export J2EE_HOME = "/home/chongming/jdk1.5"
export M2_HOME = "/home/chongming/maven"
export CLASSPATH = .:/home/chongming/jdk1.5

After saving the file, open up a terminal and type javac for javato see if the classpath is setup correctly

No comments:

Post a Comment

Cash flow Forecasting

Why cash forecasting? A cash forecasting model is an essential tool for treasuer to manage working capital. Forecasting preempt treasurer ...