Cough, although the great god of Linux are command line, but who let LZ is LJ, desktop Open two terminals do not feel better ...
CentOS7 installing eclipse is much more complex than installing eclipse under the Window system.
Ref: 1190000002651775
First, upload the Eclipse installation package using the previously built FTP server to extract
TAR-ZXVF eclipse-java-neno--linux-gtk-x86_64.tar.gz-c/opt//-C means the extracted directory, you like
Establishing a directory connection
Ln-s/opt/eclipse/eclipse/usr/bin/eclipse
To set up desktop startup for Eclipse:
Vim/usr/share/applications/eclipse.desktop
and add the following content,
1 [Desktop Entry] 2 encoding=utf-8 3 name=eclipse 4.4.1 4 comment=Eclipse Luna 5 exec=/usr/ bin/Eclipse 6 icon=/opt/eclipse/icon.xpm 7 categories=application;d Evelopment; Java;ide 8 version=1.0 9 type=application terminal=0
Create a shortcut to the desktop that appears when the JRE is not found, so try to find out if Eclipse finds the JRE
In the Eclipse.ini file in the installation directory of Eclipse
Under--launcher.appendvmargs, add the following configuration, the path to the JRE directory in the path of your own JDK
-vm
/usr/local/jdk1.8.0_131/jre/bin//This is the path of your own JDK installation
Then start Eclipse smoothly, write a HelloWorld test test environment calm down first (* ̄︶ ̄)
Then 、、、、 then ...
New Dynamic Web application something happened to Project.
You cannot enter the server name when you create a new Tomcat server, and the second time you meet ....
Reference: http://www.cnblogs.com/sevenun/p/5532316.html (well, yes, just don't know anything, Baidu/google)
The thing about the pit daddy is that the ones on the Internet, not even the files, have changed the new workspace directly before producing a Tomcat v7.0 Server at Localhost-config directory, configuring it
Javaworkspace/servers/tomcat v7.0 Server at Localhost-config should contain the following files:
Catalina.policy | catalina.properties | Context.xml | Server.xml | Tomcat-users.xml | Xml
But I don't have these files in the folder, so I'm going to copy all the files in this directory from my Tomcat directory:/usr/local/apache-tomcat-7.0.77/conf to the previous folder.
To modify permissions for all files
Chmod-r 777 Tomcat v7.0 Server at Localhost-config
Focus:
Modify the permissions of Tomcat: (note that this is not the Eclipse workspace, but the ability to modify Tomcat in the installation directory of Tomcat)
Chmod-r 755/usr/local/apache-tomcat-7.0.77/
Use the project's War package:
Eclipse Right-click Project Export as War package to the WebApp directory under the Tomcat installation directory,
Modify the Server.xml file under tomcat/conf
One: Add <context path= "" docbase= "TestServer1"/> Path to the host node (where the appBase of host has specified path), DocBase is the project name
Second: In order to distinguish and good-looking, increase <engine name= "Catalina" defaulthost= "localhost" jvmroute= "1server1" >
Access ip:8080 at this time to access the project's index.jsp
(******* here window can not start Tomcat, in the Tomcat bin directory, Tomcat7w.exe Open, set Startup mode for Java to open)
The final result, souvenir ....
CentOS7 Installing Eclipse