Eclipse environment Configuration

Source: Internet
Author: User

The ERP configuration started from yesterday afternoon and started the first task as soon as the location was allocated in the afternoon, setting up the environment.

To configure the environment, jdk1, 4,2_16, tomcat4.1, and erphome are required. erphome is the project file. JDK and tomcat are placed under the D: \ javawork directory, and erphome is directly placed under the e disk. First, check java_home, tomcat_home, and erp_root in njsteel. bat under the erphome directory and change it to the corresponding directory on your computer. And erphome \ njsteel. ear \ ERP. tomcatconf in the war directory. xml configuration file. Because the testing machine, remote DB2, And the alias of the remote testing machine, is configured as idbnj for debugging ERP, 249th lines of node <resourceparams
Change the value of the sub-node <parameter> of name = "JDBC/dsnjsteel"> to jdvc: DB2: idbnj.

Double-click the njsteel. BAT file to open the server and log on to http: // localhost/ERP/MR/JSP/mrjjtf. jsp. If the complete table interface appears, the server runs normally.

If the above is successful, it indicates that the ERP runs normally. Now you can configure eclipse. In my understanding, this configuration is to install JDK and configure the ERP server to start and stop (when it is stopped, the batch file is called directly, but I have never figured out why it cannot be called at startup. BAT file, you must configure the startup Item or debug .), Create Tomcat directory and extension library directory according to. classpath under the project directory, so that ERP can load JDK, tomcat4.1 \ shared \ Lib, WIN-INF \ Lib three class libraries.

The installation of JDK is not described here. classpath is an existing directory, but it is simple to configure and call the. BAT file. The Tangle is to configure the startup of the server. Click Open Run dialog to bring up the configuration dialog box. First configure the main tab, click browse at the project, find the Project ERP, OK, Click Browse at the main class, enter Bootstrap, find Org. apache. catalina. startup. bootstrap, OK; then switch to the arguemns tab and enter start-config IN THE arguemns field of program.
"E: \ erphome \ njsteel. Ear \ ERP. War \ tomcatconf. xml"-debug, enter

-Dcatalina. Home = "D: \ javawork \ tomcat4.1"
-Djava. ndorsed. dirs = "D: \ javawork \ atat4.1"
-Dcatalina. base = "D: \ javawork \ tomcat4.1"
-Djava. Io. tmpdir = "D: \ javawork \ tomcat4.1 \ Temp"
-Duser. dir = "E: \ erphome \ njsteel. Ear \ ERP. War"
-DCOM. ICSC. Ds. dsjcst0.config = ERP. ini
-Dcom.icsc.dpms.de. dejc300.j2ee = true
-Dcom.icsc.dpms.de. dejc300.dvlp = false
-Dcom.icsc.dpms.de. dejc300.local = false

Note that the path configuration should be consistent with your computer. Select JDK on the third tab JRE, and select classpath on the fourth tab. classpath file generation. Now eclipse configuration is complete, click Apply, and then click Run to run the server. ERP can run

The configuration process is tortuous. I completed the configuration this afternoon. The main problems are as follows: 1. I do not understand the content of the classpath tab. I used my tomcat at the beginning and reported an error consistently. I found that class loading was an error, you also found that you should modify the content on the classpath tab, but the modification is very tangled. After a while, you can find that the content is based on the project. the classpath file was generated, so I gave up the idea of modification and switched. the directories in the classpath are consistent. The second is that atat4.1 \ shared \ Lib is empty. After the configuration is complete, an error occurs and the prompt D: \ tomcat4.1 \ shared \ Lib appears.
There is a directory. the jar file does not exist. When it is opened, it finds the time and space in the directory. At first, it thought there was a problem with other configurations, and it was also difficult to find that there was no file at all, which may cause a copy error, no error is reported after the copy operation is performed. Now the problem is solved.

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