JAVA Linux development platform erection

JAVA Linux development platform erection

Environment:

Java JDK 1.6 (package name: jdk-6u2-linux-i586-rpm.bin the size: 61.6M)

Linux Fedora 7

Installation steps

(Hard disk version of the installation CD installation, you can skip steps 1-6, Step 7 Select the CDROM)

1 to remove a Windows partition to make room to install the system, it is recommended that at least 10G

2, the image file is copied to the “D :/ (not NTFS partition)

3, the image file in the images / pxeboot directory initrd.img and vmlinuz files are copied to the “D :/ images.

4, in the WINDOWS system install WINGRB0206 software (used to boot the system).

5, reboot the system menu selection appears, select the C key to enter the grub> command prompt

6, enter the following command:

kernel (hda, 5) / images / vmlinuz (Press Enter)

initrd (hda, 5) / images / initrd.img (Press Enter)

boot (press Enter)

Note: 1, if successful, will directly enter the installation interface

(Hda): on behalf of the first hard disk partition (usually D drive)

You can Qiaowan left parenthesis, press the tab key, it will list the current

All available disks in the system and number.

7, from the Hard Disk is installed.

8, select the installation partition attention to the selection of custom partition.

Is not installed on the partition to create a SWAP partition capacity is generally twice the memory, it is recommended to 512MB; create a root partition, select the mount point “/” can choose the remaining capacity

9, select packages, pay attention to check the development tools and MySQL database, default

10, the other can select the default value.

Summary: After the above steps, you can basically the Linux system starts normally.

(JDK environmental)

1, jdk-6u2-linux-i586-rpm.bin copied to the / tmp directory.

2, open the / tmp directory to the executable file, right-click the file Properties -> Permissions, check Allow Close

3, double-click the file -> Run in terminal is completed, it will automatically shut down, note without any prompting.

Check whether there this / usr/java/jdk1.6.0_02 directory, if the installation is successful, otherwise it fails.

4, edit / etc / profile file, the file is not the end of append the following lines:

# # # # # # # # # # # # # # JAVA # # # # # # # # # # # # # # # # # # # # # # # #

JAVA_HOME = / usr/java/jdk1.6.0_02

export JAVA_HOME

PATH = $ PATH: $ JAVA_HOME / bin;

export PATH

JBOSS_HOME = installation directory

export JBOSS_HOME

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # The configuration

5 / usr/lib/jvm/jre-1.5.0-gcj changed its name to any other name.

6, open the terminal and type: / etc / profile, update the configuration information.

7, continue to enter: Java-version view java version, under normal circumstances will be similar to the following information:

java version “1.6.0_02”

Java (TM) SE Runtime Environment (build 1.6.0_02-b05)

Java HotSpot (TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)

Summary: easy to operate, is a combination of graphical and command explain. Step 2, 3, in the terminal will be reported the following error message, this error message is usually fleeting self-closing, the author prior to the implementation of the program to perform a “bash” command to capture This error message:

tail: can not open “bash” read data: No such file or directory

Checksumming …

The download file appears to be corrupted. Please refer

to the Troubleshooting section of the Installation

Instructions on the download page for more information.

Please do not attempt to install this archive file.

For this error, temporarily not find the cause, but the implementation of the program through a graphical interface, there is the problem, is very depressed ……

Note: the above configuration of the environment is very important, if not with good follow-up operation will not be completed.

(Development platform installation, the environment with a good, restart the computer)

Eclipse directly extract to a directory, the completion of the already installed

2, MyEclipse recommend the graphical installer, double-click the installer, and then select Run in Terminal “to complete the installation of the program

Tomcat5.5 tomcat6.0, jboss4.2.1 three server simply extract can complete the installation.

4, start the MySQL server, enter the command in terminal mode:

[Root @ localhost ~] # service mysqld start start mysql service

[Root @ localhost ~] # mysql mysql Query Analyzer

 Go to the mysql command mode, you can accept any legal SQL statement —-

 A semicolon as a command line terminator —–

mysql> show databases; displays all database

mysql> use mysql open library file

mysql> show tables; shows all the tables in the current library

mysql> quit; exit

1) MySQL driver file named: mysql-connector-java-5.0.7-bin.jar

2) connection method

Class forName (“the com.mysql.jdbc.Driver,”);

Connection conn = DriverManager. GetConnection (“jdbc: mysql :/ / localhost / test”, “root”, “”);

Summary: The installation is relatively simple, and the WINDOWS nothing very different. After the above steps, you can deploy in linux platform and development program.

(Translation software installation)

1 StarDict:

URL:

The main program: stardict-3.0.0-1.fc7.i386.rpm

Dictionary: stardict-hanyuchengyucidian_fix-2.4.2.tar.bz2

stardict-oxford-gb-2.4.2.tar.bz2

stardict-xiandaihanyucidian_fix-2.4.2.tar.bz2

2, the installation:

1) Double-click the main program installation file, the installation

2) the three dictionaries extract the files to the following directory:

/ Usr / share / stardict / dic

3) is complete, in the Applications -> Accessories -> StarDict King “

(Instant messaging)

1, LumaQQ2006, download this software can be directly extracted

2, Internet communication program, the system comes in the menu —> Internet menu. Could be linked MSN

(FTP server configuration)

1, the installation package: vsftpd-2.0.5-16.fc7.i386.rpm

2, the command is as follows:

[Root @ localhost Fedora] # mount-o loop / mnt / d / fedora.iso / mnt / iso # mount image file

[Root @ localhost Fedora] # cd / mnt / iso / Fedora /

[Root @ localhost Fedora] # rpm-ivh vsftpd-2.0.5-16.fc7.i386.rpm # install the vsftpd software

[Root @ localhost Fedora] # service vsftpd start # start vsftpd service

[Root @ localhost Fedora] # vi / etc/sysconfig/network-scripts/ifcfg-eth0 # modify the network configuration

The contents of the documents refer to the following:

# VIA Technologies, Inc. VT6102 [Rhine-II] # card description

DEVICE = eth0 # NIC Number

BOOTPROTO = static # specify the IP

IPADDR = 192.168.1.2 # IP address specified

NETMASK = 255.255.255.0 # subnet mask

Gateway = 192.168.1.1 # gateway

HWADDR = 00:11:2 F: 79:59:3 A # NIC mac address

ONBOOT = yes # system activated at boot time

Save and exit, continue to enter the following command:

[Root @ localhost Fedora] # ifdown # disable the network card

[Root @ localhost Fedora] # ifup # enable the network card

[Root @ localhost Fedora] # useradd ftp # add an account for FTP service

[Root @ localhost Fedora] # passwd ftp # set a password

Enter the password twice

[Root @ localhost Fedora] # service vsftpd start # start vsftpd service

[Root @ localhost Fedora] # service iptables stop # turn off the firewall

Configuration complete!