How to deploy a java program on linux and regularly execute it-Linux general technology-Linux programming and kernel information. The following is a detailed description. Original Author flyhight
I. Environment Introduction:
SecureCRT5.1 + winXP + WMware + Redhat
NOTE: If SecureCRT cannot connect to linux on the virtual machine, you should pay attention to two places. One is whether the NIC on the virtual machine is bridging or directly connected to the physical Nic, whether the ip address is in the same network segment as the ip address of the xp Server. if linux on a virtual machine can access the Internet, but it cannot be connected, enter services iptables stop on the linux terminal.
2. Install jdk on linux
Go to the java official website next suitable for linux jdk, we next jdk-6u4-linux-i586.bin here, use SecureCRT to connect to linux, enter the directory we will put jdk, enter rz, in the pop-up dialog box, select jdk next to us to upload it to linux. use the ls command to check whether the file is uploaded, and then add executable permissions to the file: chmod + x jdk-6u4-linux-i586.bin, and then execute the file :. jdk-6u4-linux-i586.bin then you will see the jdk installation information. if you want to enter yes or no, enter yes. after the installation is complete, configure the java environment variable, modify the/etc/profile file: vi/etc/proifle, press the letter a to enter the insertion mode, and add the following lines at the end: