java

Getting the correct time in JVM 1.5 and 1.6

Maybe some of you out there are also using Sun’s JVM on your linux box but did not yet realise that the timezone settings in Java would not match the ones you use in you Gnome settings or system settings. The reason for that is that the JVM looks at a file /etc/localtime to find these timezone settings and apparently wants it to be a Symlink and not a file per se, so let’s fix it~

  1. backup your /etc/localtime
    sudo cp /etc/localtime /etc/localtime.bak
  2. now let’s link to the correct file after making a backup of it. In my case “Asia/Hong_Kong”, look for other regions in /usr/share/zoneinfo/
    sudo cp /usr/share/zoneinfo/Asia/Hong_Kong /usr/share/zoneinfo/Asia/Hong_Kong.bak
    sudo ln -s -f /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime

java
linux

Comments (0)

Permalink

Display problems with Beryl (or Compiz) and Java

Please refer to the following link ;-)
you will find it useful
copy of this is when you click on “more” Continue Reading »

Computer Stuff
Random Stuff
java
linux

Comments (0)

Permalink

Installing mercury messenger on Ubuntu linux

adapted from of this site.

In this post we are trying to install mercury messenger. Mercury is a MSN compatible messenging client which is in my opinion one of the best ones. It is written in java and thus runs on most computers.
In this copy’n'paste we will use the repository made by Trevino who has quite a few useful things.

Here is what you have to copy and paste in a terminal window:

sudo apt-get install sun-java5-bin
sudo update-alternatives --config java

sudo gedit /etc/apt/sources.list

Paste this in the window that pop’s up:

# TreviƱo's Ubuntu edgy Repository (GPG key: 81836EBF - DD800CD9)
# Further informations: http://3v1n0.tuxfamily.org
deb http://download.tuxfamily.org/3v1deb edgy 3v1n0
deb-src http://download.tuxfamily.org/3v1deb edgy 3v1n0

Close that window after saving and in the terminal paste:

wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install mercury-messenger

If you are using beyril or compiz you might wanna disable them if Mercury does not want to be friendly with them.

Computer Stuff
Random Stuff
java
linux

Comments (2)

Permalink

java assignement

So annoying^^ Yesterday until 3am I did my 1st java assignement for the CSC932 course I am currently taking at Stirling University. Seriously, the application could be improved, but they require the application to be similar to the one they present to us in a compiled format.(JNLP) Was quite a pain as they required the controllers of the program to be scrambled around? Just have a look at the code =D(i know it could be optimised, but i wanted the code to be as close as possible to the way they teach us to code in lectures so as not to be penalised by my style of coding ^^)

code of my app in the full article

Continue Reading »

Computer Stuff
Stirling University
java

Comments (0)

Permalink