Learn to install Eclipse, the harvest is quite big.

xiaoxiao2021-03-06  20

First, I saw Chen Gang's Eclipse's web environment in 9CBS, so I pigd it. IBM's WebSphere is also based on Eclipse. It is necessary to be a good thing, learn, the following pictures and file parts from Chen Gang's article, not to copy, just for the future.

1. Basic environment and program download my environment is: WindowsXP SP2 JDK1.4.2_07 Eclipse3.1M4 Tomcat5.0.28 Lomboz3.1.0

.

Software Name version number file name Tomcat 5.0.28jakarta-tomcat-5.0.28.exej2sdk1.4.2_07 j2sdk-1_4_2_07-windows-i586-p.exeeClipse3.1M4 Eclipse-SDK-3.1M4-Win32.zipnlPack-Eclipse-SDK-3.0 .x-win32.zip (language package) Lomboz3.1.0org.objectWeb.Lomboz_3.1.0.N20050106.Zipemf-sdo-runtime-i200412160800.zip2. Basic installation step 2.1 Installing J2SDK This is too simple, in order to simply start, put the installation The directory is set to D: / J2SDK, I will do this later. Install J2SDK: To Sun Official Site (http://java.sun.com) Download J2SDK installation file: J2SDK-1_4_2_07-windows-i586-p.exe, after downloading, set environment variables: My Computer - - Property --- Advanced - Environment Variables; Select --- System Variables (S): Set Java_Home Environment Variables: Click - New, Enter: Java_Home Enter: Java_Home Enter: D: / J2sdk (assuming J2SDK installation is installed under the directory D: / J2DK, anyway is the J2SDK installation directory.) Then - determined to set the Java_Home environment variable. Set the ClassPath environment variable: click - New, enter: ClassPath Enter: ClassPath Enter: D: / J2SDK / BIN; D: / J2SDK / LIB; D: / J2SDK / LIB / DT. JAR; D: /J2SDK/LIB/Tools.jar (middle point "." and semicolon ";") Then --- OK, the ClassPath environment variable has been set. Set the PATH environment variable: click - New, type in the variable name: Path Enter: d: / j2sdk; .; d: / j2sdk / bin (middle point "." And semicolons " "" It is essential.) Then --- OK, the Java_Home environment variable has been set. After the three environment variables are set, write a simple Java program to test whether J2SDK has been installed successfully: Newly built a directory TEST in D: / Next: public class test {public static void main (String args [] ) {System.out.println ("this is a test program");}} Save the above program as file named Test.java, saved under the directory D: / Test.

Then open the command prompt window, CD to your TEST directory, and type the command javac test.java java test. If you see the printed this is a test program. If you have successful installation, if you don't print this sentence If you need to check your configuration carefully. If the J2SDK installed above, continue to install Tomcat: 2.2 Install Tomcat is also very easy, all next, pay attention to the JVM path settings should be D: / J2SDK / JRE, if your machine is installed, the J2SDK is installed, default The value may be incorrect. Note that environment variables increase Catalina_Home = C: / Program Files / Apache Software Foundation / Tomcat 5.0 I have the following error message when I do some programs: unable to find a javac compiler; com.sun.tools.javac.main is not on ON The classpath. Perhaps Java_Home Does Not Point To the JDK error message is not set to the Java_Home environment variable, the reader may also encounter this problem, clearly set this environment variable, start in the service, but in the command line Enter d: / tomcat 5.0 / bin / startup.bat boot can run, the author finds the reason, it turns out that the environment variable is not read in the service, but defines this environment variable in the configuration, so even Java Options joined: -djava.home = d: /j2sdk1.4.2_04, start Tomcat again OK, refer to the figure below: 2.3 Installing Eclipse to say that it is installed, actually unzipped, my directory is d: / eclipse The files of language pack nlpack-eclipse-sdk-3.0.x-win32.zip are extracted to D: / Eclipse, all overwritten, run Eclipse.exe, the system will get up, but also Chinese, if Like the original taste, or in English. Note: Don't use the Eclipse3.0 version, otherwise you have an error, I spent a lot of time, I found that this is a bug, directly installing Eclipse 3.1m4 a little problem. 2

转载请注明原文地址:https://www.9cbs.com/read-59406.html

New Post(0)