It seems to me that this error has nothing to do with razorsql. Check for java graphics lib is properly installed in your system or not. To be more sure install JRE. I hope that should solve your issue. Ubuntu has capability to install headless java.
sudo apt-get install openjdk-6-jdk
sudo apt-get install openjdk-6-jre