Installation of MyEclipse and Tomcat server under Linux, as well as the problems and workarounds that occurred during my installation, and implement a Web applet

Source: Internet
Author: User
Tags tomcat server

1. First, go to MyEclipse and Tomcat's official website to download the Linux version of the compressed files, and MyEclipse's Chinese official website is required to login and may have to pay, we can go online download, there is the Linux version of Tomcat, This direct Officer network can be downloaded, after the download I still put them in my e-disk under the AS directory, if you have not configured the JDK, that is, Java environment, you can see me this article: http://blog.csdn.net/u012561176/ article/details/45119047 I'm going to do it right here!

The contents of the As folder under my E disk are as follows:






2. First, we have to find the place where the files I have shared are placed under the Linux system, and when I configure the Java environment, I have already said, here, jump directly to that directory and enter the command:

Enter the command, you can see the as directory with a tomcat compression package and a myeclipse compression package, we can then extract the two compressed packets into the current working directory, that is, the/mnt/hgfs/as directory.





3. You can start extracting the following:

(1). Enter the command TAR-ZXVF apache-tomcat-7.0.61.tar.gz so that it can be decompressed, as shown in:

Click Enter, after the successful decompression, and then look at the as directory what, found a more folder:

Let's look at what's in the apache-tomcat-7.0.61 directory, enter the command CD apache-tomcat-7.0.61, and then enter Ls-l, as shown in:


(2). Next, unpack the MyEclipse package, because the suffix is in zip format, so you can use the command: Unzip Myeclipse-pro-2014-ga-offline-installer-linux.zip Can be extracted to the as this working directory:

First, because we switched to the apache-tomcat-7.0.61 directory above, we want to switch the current working directory to as, because our MyEclipse compression package is under the as directory, and the current working directory is a subdirectory of AS, so enter the command:

After jumping to the as working directory, you can enter the decompression command:

Press ENTER to start the decompression, unexpectedly appear the situation:

and the command line is not moving, has been in this interface, suddenly feel a gust of cool breeze, there is such a situation, most of it is in operation, because it too long did not respond, in a fury i put this command line window off!

Then I reopen the command line, in the switch to as working directory, and then look inside the corresponding content, if the MyEclipse decompression successful, but better, as shown:

Unexpectedly appeared a suffix named Run file, run is the meaning of running, is it possible to run the file, then must look for information, Baidu a bit, the original is an installation file, is also drunk, to install the run file, you must add an executable permission to this file, so we enter the command chmod +x Myeclipse-pro-2014-ga-offline-installer-linux.run, and then in the input. Myeclipse-pro-2014-ga-offline-installer-linux.run can be installed, in the process may require us to enter Yes or no, after installation can be used, as shown in:

Then press ENTER, as shown:

To start the installation, wait, prepare the installation engine for information, and then, the situation that appears:

Whether you are drunk or not, anyway I was drunk, unexpectedly is not completely download, why this? Hint information I probably translated, this installation is not complete download and you can not start to install, start, please start to download this installation and make it completely download, that is, failed, but it does not matter, it should be the problem of software, do not know, a scare jump Ah!





4. Unexpectedly unable to install the MyEclipse2014 version, it is estimated that because the ZIP package decompression when there is a problem, because I unpacked the package when there is garbled, so I can only re-download one, it will have to the as directory of the tool about MyEclipse removed, The delete command can use RM, as shown in:

After the deletion, I put the re-downloaded files under the E drive under the as directory, because I have shared this folder with Linux, this time I downloaded run file for run, to see it can be installed normally not, downloaded for several hours, enter the command below to see the contents of the as directory, as shown in:

We then enter the command directly:./myeclipse-pro-2014-ga-offline-installer-linux.run to see if it can be installed, as shown in:

Haha, finally can, if it is a software problem, appears, you can start to install:

Click Next, Next:

Select Accept agreement, and then click Next to appear:

After clicking Next, it appears:

Then click Next to appear:

After the installation is complete, the following:

Click Finish to create a MyEclipse app icon, but still no, click Finish after the dialog box appears, error, to install a software is not so easy:





5. Then we have to solve this mistake again, drunk again, but it's OK, most of the errors can be solved, so I went to Baidu again to find the information ..., looked for a long time, also changed a lot, or not feasible place, and then I went to see my myeclipse installation directory, With the CD switch to the MyEclipse installation directory, has been exploded no files and directory files, so I simply changed the installation directory to MyEclipse, the online people are said to be the configuration file parameter configuration error, I found myeclipse inside unexpectedly have the JDK, I was drunk, But I just installed and configured the JDK a few days ago, isn't that a repetition?

(1). I opened the configuration file for the environment variable that I configured earlier, that is, the/etc/profile file, as shown in:



(2) I have configured the JDK environment, and then I opened the MyEclipse Myeclipse.ini file, as shown in:



(3). Because I changed the name of the MyEclipse installation directory, the configuration file Myeclipse.ini file must change the path, the configuration file all occurrences of the name MyEclipse Professional 2014 all replace with MyEclipse , after the change, such as the red box, that is,-VM behind, unexpectedly is the myeclipse default JDK, but we have already configured the JDK Ah, so I will directly delete this line, replaced by/mnt/hgfs/as/jdk1.7.0_75/bin/java, As shown in the following:

Once saved, the MyEclipse can be opened normally, as shown in:




6. So the error is not scary, the program ape if the bug is not a program ape, a little bit of error is what, as long as there is perseverance, I do not believe that can not solve, but the most foolish way is to re-install, I have not like to reload, unless it really can not solve, OK, nonsense, but the computer opened a virtual The next step is to introduce how to create a MyEclipse shortcut on the desktop, which is created directly under Windows, which is not the case with Linux, so it is necessary to introduce:

(1). First, right-click on the desktop to select Create Launcher, the interface that appears:


(2). How do you choose? The first type selects application, the default type is the application, and then name can be arbitrarily taken, here I take myeclipse, and then command for the specified application commands, that we can open, directly run, comment for notes, can be arbitrarily taken, Next to the No icon button is to select the application icon, where it is necessary to tell the command of the choice and no icon selection:

Where command is selected, we can click on next to browse, confirm myeclipse application command, command, is actually a file, double-click can run something, at this time we must choose MyEclipse installation directory MyEclipse this thing, as shown in:


(3). This can be specified, then the selection icon, we can click on the red arrow pointing to the button, that is, no icon:

Click on this icon to appear, then click on Brower to select what we need:

Then point to our installation directory under the MyEclipse icon file, that is, PNG format files, here do not know why by selecting Brower PNG file Selection, So I directly copy the PNG file under the first directory under root under the installation directory MyEclipse under Conflguration to/usr/share/pixmaps, as shown in:


Then select it as follows:

This can be, and then found on the desktop more than a myeclipse icon, is a big point, double hit open can open:

This creates a desktop shortcut! Note: Some of these operations can be carried out with the command, in order to lazy, I use the interface of the way to operate, haha!





7. The following can be configured our Tomcat server, above we have the Tomcat compressed package decompression, then the configuration of how it, the port number of what configuration, in fact, I do not understand, I used to install the Tomcat server under the Windows operating system, At that time, I downloaded an exe executable file, double-click on the open can be installed, and the directory is the same as the above compression, so we have to look at the content of the Tomcat decompression, you can use the command to view:

(1). First, use the CD command to switch the working directory under the extracted directory, as shown in:

(2). Because most of the main content is placed in the bin directory, I switch to the bin directory, and then view the corresponding content, as shown in:

The red arrow pointing at the place is a. sh file that can be run by command, sometimes installation files, sometimes script files, and then we use the command sudo to run the startup.sh file as shown in:

This opens the Tomcat server, and if you want to shut down the Tomcat server, you can use the command sudo./shutdown.sh, as shown in:

Note: I see there are some bat batch files under the Bin directory that can open the Tomcat server under the Windows operating system and not run under the Linux operating system!


(3). Then I open the MyEclipse tool and select Perferences under the Windows toolbar, with the following direct drawings:

Then select the directory where Tomcat7.0 is located, click the brower next to it, as shown in:



(4). Then create a new Web project, name the Hello, then put the index.jsp file under the project, deploy the Hello project to the Tomcat7.0 server, and then open the Tomcat7.0 server, as follows:

If you configure Tomcat on the above, you can see the article I wrote about the first JSP applet: http://blog.csdn.net/u012561176/article/details/39186667.




8. The above content is only for everyone to learn, write bad, please forgive me, if there are errors, please point out, I hope you respect the fruits of labor, reproduced please indicate the source, thank you!



Installation of MyEclipse and Tomcat server under Linux, as well as the problems and workarounds that occurred during my installation, and implement a Web applet

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.