How to deploy a java program on linux and regularly execute it

Source: Internet
Author: User
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:
QUOTE:
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.