Basic library needed by JUnit for a spring+hibernate app.
Check if you included these .jar if you have ClassNotFoundException.
hibernate3.jar
spring.jar
commons-logging.jar
commons-dbcp.jar
commons-pool.jar
commons-collections.jar
dom4j.jar
jta.jar
antlr.jar
mysql.jar
Install JDK on Linux (CentOS)
1. download the .bin runnable file from sun.
2. use chmod and change the .bin to executable mode.
3. run it. example: ./jdk1.6.0_06.bin
and then it will install itself.
But CentOS use redhat jdk under /usr/bin/java
you can check it with this command: which java
To change this environment setting for bash shell, add this to your [userhome]/.bashrc
export PATH=/[javahome]/bin:$PATH
export JAVA_HOME=”/[javahome]“
if you install your jdk to /root/jdk1.6.0_06, the result will be
export PATH=/root/jdk1.6.0_06/bin:$PATH
export JAVA_HOME=”/root/jdk1.6.0_06″
beware the difference between linux and windows (since I am windows user).
windows use “;”, linux use “:”