Steps and issues encountered in project deployment on a remote server in eclipse development

Source: Internet
Author: User

Environment: Eclipse + JDK 1.7

Run Eclipse and click windows--preferences--java--compiler--to the right to see the currently used JDK version number, such as:

Note: This is the global JDK version number

Special note: The specific JDK compilation environment specified by the Tarim Rig project is 1.7 (Enable project specific settings)

Remote Desktop Connection: Enter user name/password

When you get to the Remote Desktop machine, check to see if we have the tomcat-7.0 and jdk-1.7 we need (no download or installation).

Note: The project on the remote desktop only needs to replicate the html5server of the front end, and the backend is automatically compiled.

Problem encountered: Unsupported Major.minor version 51.0 error solution

Cause Analysis:
The above error occurs because the external jar package is compiled with jdk1.7 (JDK7), and the project JDK version using this jar is jdk1.6 (JDK6), which is not supported by the version. workaround See the following steps:

First step: Add jdk1.7 to eclipse. (Above me is the right plan)

Step two: Modify Eclipse's build environment JDK to 1.7. The steps are: Right-click the project, select Properties, locate the Java Build Path window, select the libraries tag, and modify the JRE System libraries to 1.7. As shown in the following:

Step three: Modify the project start JDK to 1.7. As shown in the following:

Fourth step: Copy and paste the compiled file to the Remote Desktop server locally, such as:

Fifth Step: Start Tomcat (Startup.bat) on the Remote Desktop, here if the boot encounters port (8080,8009) already exists, Modify the port in Tomcat-7.0.70→conf→server.xml (I changed the 8080 to 34567,8009 to 45678)

Sixth step: See the effect (we use the company intranet).

Steps and issues encountered in project deployment on a remote server in eclipse development

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: 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.