i followed the instructions on http://www.oracle.com/technetwork/ja...ng-138783.html
and now it was installed at /usr/java/jdk1.6.0_20
When I tried to use javac to compile, it said "javac: command not found
then I added the following code into /etc/profile
but it didn't solve the problem.
And finally, i found this http://www.crazysquirrel.com/computing/debian/java.jspx
but when I tried to use
apt-get -u install java-package
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package java-package
Did i do anything wrong?