麥克斯做個不宅的工程師

Maxi’s idiotic programming.

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

May 20, 2008 , Tuesday Posted by maxi326 | Programming | , , , | No Comments Yet

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 “:”

May 20, 2008 , Tuesday Posted by maxi326 | Linux | , , | No Comments Yet