How to install JAVA into UBUNTU

Step 1:
Type the following line into your Terminal

sudo apt-get install openjdk-6-jdk 


Step 2:
If there was some error during the installation, re-type step 1.

Step 3:
After finish your installation, type the following command
javac -version
If your java is successfully installer, you should be able to see your java version, for example,

javac 1.6.0_20

Step 4:
Create a simple java program by:
gedit testing.java

class testing {

    public
static void main (String [] args) {

        javax.swing.JFrame window;

        window
= new javax.swing.JFrame();

 

       
window.setSize(300,100);

        window.setTitle(“My
First Java Program in Lab”);

        window.setVisible(true);

    }

}

After that, back to your terminal, and type “javac ./testing.java” followed by “java testing“.
If you see a pop up, means u had successes.

❤ 再度迷失 ❤

阔别了那么久,小娃终于忙碌完毕了。
但是也遇见了一个不错的男生。
但是小娃只能够和他维持在朋友之间的距离。
原因嘛… 就是小娃就快要毕业了, 如果真的开始了,那么小娃以后就要受相思之苦。
如果被拒绝了,朋友都当不起吧。。

小娃以前勇于追究,但是却还是离开收场。
现在真的不再敢了。。。<img src="/plugins/HC_Emoticons/emoticons/S4/s4_01.gif" border="0" alt="不要啊" longdesc="“>