Ubuntu Building development Environment: Ubuntu+jdk+jboss+apache+maven+svn+eclipse

Source: Internet
Author: User
Tags file copy gz file jboss

First, install the Ubuntu operating system
Preparatory work
1. An ordinary computer (not installed operating system does not matter), to ensure that the computer hard disk has 10G of free space.
2. A u disk to ensure that there is 2G of free space on the USB stick.
Steps:
Download the latest version of Ubuntu desktop operating system for "http://www.ubuntu.com/desktop/get-ubuntu/download"
Download the "USB Installer" tool Http://www.pendrivelinux.com/downloads/Universal-USB-Installer/Universal-USB-Installer.exe
After downloading, do not install, run directly. In the STEP1 below this interface choose your image package version, STEP2 choose your downloaded ISO file, STEP3 choose your USB stick, others remain the default. Click the Create button.
By completing the above steps, you can start installing Ubuntu from the USB flash drive. Power off from the USB flash drive (press F12 to enter the BIOS when booting, and then choose to boot from the USB stick), then you will see the Ubuntu installation interface, choose to install.
After Ubuntu is installed, the default input method is in English. Can install Sogou Input method.
Download URL:
http://pinyin.sogou.com/linux/
Install URL:
http://pinyin.sogou.com/linux/help.php
After installing Sogou Input method, in the upper right corner of the desktop keypad, configure the current input method, and then the Sogou input method to add on it, use CTRL + SPACEBAR to switch input method.

--------------------------------------------------------------

Ii. Installation of JDK
Download the JDK to the Oracle website to install it.
It is worth noting that: it is best to download the. tar.gz file, this type of file can be extracted directly using, in addition to view their native system environment, is 64-bit or 32-bit, download the corresponding version of the JDK. View native information: The function key in the upper right corner of the desktop--->about this computer to view system information.
For example, download: jdk-7u71-linux-x64.tar.gz
After the file is downloaded, copy it to the installation directory, for example: ~/tools/java
Then unzip the file:

sudo tar -zxvf jdk-7u71-linux-x64.tar.gz

After decompression, you will see the jdk1.7.0_71 directory under the directory, this time, the JDK is theoretically installed, and then in order to use the command provided by the JDK, we configure the environment variables:
Open and edit the profile file as root
sudo vim /etc/profile
(If the prompt does not have permission, change the file's read and write permissions, if prompted that the VIM command is not available, use the command sudo apt-get install vim installation vim)
Add the following content to the file:
Where the ~/tools/java/jdk1.7.0_71 is changed to the full path of your JDK installation
#set java environmentexport JAVA_HOME=/home/hollis/tools/java/jdk1.7.0_71export JRE_HOME=/home/hollis/tools/java/jdk1.7.0_71/jreexport CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATHexport PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

This time, in theory we have installed and configured the JDK, using the java-version command to view the installed version of Java information, but because Ubuntu default has OPENJDK, the system will be prompted to have a number of places containing Java commands, then we modify the default configuration, Make our installed JDK a default,

sudo update-alternatives --install /usr/bin/java java ~/tools/java/jdk1.7.0_71/bin/java300sudo update-alternatives --install /usr/bin/javac javac ~/tools/java/jdk1.7.0_71/bin/javac300sudo update-alternatives --config java

Now that the JDK is fully installed and configured, use the command java-version to see the information:
Java Version "1.7.0_71"
Java (TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot (TM) 64-bit Server VM (build 24.71-b01, Mixed mode)

---------------------------------------------------------------
Third, install Apache

Apache:
Download apache2 from official website, then unzip (TAR-XZVF) compile (configure/make/make install)

--------------------------------------------------------------
IV. JBoss Installation

To download the installation package:
Http://jbossas.jboss.org/downloads.html

Download and then unzip

-------------------------------------------------------------------

Install SVN
sudo apt-get install subversion

--------------------------------------------------------------------

V. Installation of MAVEN

http://maven.apache.org/download.cgi
Extract:

sudo tar -zxvf Apache-maven-3.2.3-bin.tar.gz

After extracting, set the environment variable again, or open the/etc/profile

sudo vim  /etc/profile在文件中加入:#set maven environmentM2_HOME=/home/hollis/tools/maven/apache-maven-3.2.3export MAVEN_OPTS="-Xms256m -Xmx512m"export PATH=$M2_HOME/bin:$PATH

Save the exit, and then use the Source/etc/profile command to make the configuration effective.
Use Mvn-version to see if MAVEN is installed successfully

After installing and configuring MAVEN, we also configure the setting file,
Using the command MVN the clean system will automatically generate the Settings.xml file. Copy the file to ~/.m2.
The next step is to modify the Settings.xml file under the. M2 folder

--------------------------------------------------------------------
Vi. Installation of Eclipse:

Eclipse official website download Eclispe
Download the. tar.gz file and unzip it to use

----------------------------------------------------------------------
Install the SVN plugin under eclipse
Plug - ins:
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
After download, unzip, speak plugins folder below the file copy to the Eclipse installation directory under the Plugins folder. Copy the files under the features folder to the features folder under the Eclipse folder
Then execute the command:
Apt-get Install Libsvn-java # use sudo in Ubuntu
Installing Javahl
Then modify the Eclipse.ini file and add it after-vmargs:
-djava.library.path=/usr/lib/jni:/usr/lib/x86_64-linux-gnu/jni

Source: http://blog.csdn.net/hollis_chuang/article/details/41650113 @ Emilio Yao

Ubuntu Building development Environment: Ubuntu+jdk+jboss+apache+maven+svn+eclipse

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.