Java on Ubuntu

with uiverse and mutliverse enabled in /etc/apt/sources.list

$ sudo apt-get update

$ sudo apt-get install sun-java5-jdk

$ sudo mv /etc/alternatives/java /etc/alternatives/java_previous

$ sudo ln -s /usr/lib/jvm/java-1.5.0-sun/bin/java /etc/alternatives/java

$ sudo apt-get install ant

http://blogs.sun.com/sfehrman/category/General

$ cd /tmp; wget http://downloads.sourceforge.net/hibernate/hibernate-3.2.5.ga.tar.gz

$ tar -zxvf hibernate-3.2.5.ga.tar.gz

$ cd ~/prj/lib
$ cp /tmp/hibernate-3.2/lib/antlr-2.7.6.jar .
$ cp /tmp/hibernate-3.2/lib/cglib-2.1.3.jar .
$ cp /tmp/hibernate-3.2/lib/asm.jar .
$ cp /tmp/hibernate-3.2/lib/asm-attrs.jar .
$ cp /tmp/hibernate-3.2/lib/commons-collections-2.1.1.jar .
$ cp /tmp/hibernate-3.2/lib/commons-logging-1.0.4.jar .
$ cp /tmp/hibernate-3.2/lib/jta.jar .
$ cp /tmp/hibernate-3.2/lib/dom4j-1.6.1.jar .
$ cp /tmp/hibernate-3.2/lib/log4j-1.2.11.jar .

$ cd tmp; wget http://superb-west.dl.sourceforge.net/sourceforge/hsqldb/hsqldb_1_8_0_7.zip

$ unzip hsqldb_1_8_0_7.zip

$ cd ~/prj/lib
$ cp /tmp/hsqldb/lib/hsqldb.jar .

$ mkdir ~/prj/data

$ cd ~/prj/data; java -classpath ../lib/hsqldb.jar org.hsqldb.Server

Advertisements

~ by nambabwe on 2007/10/31.

 
%d bloggers like this: