Java Development in Linux: Experience Eclipse-general Linux technology-Linux programming and kernel information. For more information, see the following. For program development, an integrated development environment and Java Development are indispensable. Eclipse is the first choice. To put it bluntly, give it first, for example:
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.blogjava.net/images/blogjava_net/youxia/LinuxAndJava3/04.PNG'); ">
Although the latest version is 3.3, I still chose 3.2 because I used 3.2 all the time and worked very smoothly with JDK. After downloading the Eclipse SDK, do not forget to download the Language Pack at the same time. Otherwise, you will not be able to see the Chinese interface.
The software is still downloaded through Windows. After the software is downloaded, it is shared with Linux Through samba. We have already discussed this before. After the download, we found that the downloaded software package name contains gtk, indicating that Eclipse requires the support of the gtk library. Therefore, we can check whether the system has a gtk library through rpm-qa | grep gtk, the results are satisfactory. See:
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.blogjava.net/images/blogjava_net/youxia/LinuxAndJava3/02.PNG'); ">
Then, by expanding the tar file and decompressing the Language Pack, we can put Eclipse and Language Pack in this directory. The command is as follows:
Go to the Eclipse directory and run the ls-l command to check that there is an executable file named eclipse. Run it to start Eclipse, for example:
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.blogjava.net/images/blogjava_net/youxia/LinuxAndJava3/01.PNG'); ">
When starting Eclipse, we will be prompted to set the working directory, for example:
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.blogjava.net/images/blogjava_net/youxia/LinuxAndJava3/03.PNG'); ">
After Eclipse is fully started, the first thing is to set the jre version. In the preferences, we set the jre version to 1.5.0 _ 12 installed by ourselves, for example:
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.blogjava.net/images/blogjava_net/youxia/LinuxAndJava3/05.PNG'); ">
Finally, we will create a new Hello World project to experience the experience of using Eclipse for development. The running effect is as follows:
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.blogjava.net/images/blogjava_net/youxia/LinuxAndJava3/06.PNG'); ">
It turns out that running Eclipse in a Linux environment is smooth and fast, and the interface is acceptable, basically close to the effect in Windows. In general, I am very satisfied with Eclipse.
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