Jcreator-based lightweight Java Web Development Platform

Source: Internet
Author: User

My computer is really not good, the memory is 2*256 mb ddr 300 MHz, the CPU performance is low, amd mobile athlon XP 2200 + (-B engaged in technology is poor)

Running eclipse, netbean, and other things is really a challenge to Patience. As for JBuilder, you don't have to think about it. idea has never been used, but it is estimated that it is similar to the above. Jcreator is lightweight and pleasant to use, but masters say JC is a beginner's Ide. After countless attempts, I found that this is not the case ......

This guy said this:

Jcreator is a powerful tool that is written entirely in a Native Windows language. jcreator is faster and more efficient than most ides, especially Java-based editors. you'll use all the features in jcreator pro, instead of wading through your features that you'll never use. don't be fooled with the light-weight simplicity. jcreator is packed with power. even your largest projects run with Creator in jcreator.

Jcreator is a powerful tool written in windows, which is faster and more efficient than most other ides, especially Java-based editors. Compared to other ides, you will use all jcreator functions, which are greatly increased and never used. Don't be confused by lightweight simplicity. jcreator is powerful internally and can run easily on jcreator even for the largest project.

In fact, there is a bit of truth, I think

------------------------------------------------------------ Split line only ---------------------------------------------------

Preparation: JDK 1.6, Tomcat 6, jcreator 4.5, JUnit 4.5, ant 1.7.1, dom4j 1.6.1

With the above tools, developing a general website (logical part) is not a problem at all. The static part is still handed over to dreamwaver (although the dynamic part can also be done ......)

1Install JDK: There is nothing to say about it. Just click Next. The only thing you can note is that a separate JRE can be left empty, however, the installation is installed by default (because JDK contains JRE--B)

2Install jcreator: there is no problem ...... 4.5 already has crack ......

3Install ant: Open jcreator, configure → options → JDK tools, select Run ant in select tool type, click <default> below, and click Edit on the right, fill in the root directory of the file after the ant compressed package is decompressed in the middle of the pop-up window. You can select a path on the right.

4Install Tomcat 6 and click Next, but remember to set the username and password. The default username is admin and the password is blank.

5Configure the launch of the browser in jcreator: The jcreator tool is used here, and ant can be used for configuration, but not (......). Configure → options → tools, click New → program on the right, and select the directory of your IE, which is generally C:/program files/Internet Explorer/iw.e. ). Then, you can change the path string in the tools list to a more meaningful name, such as open site in broswer. Click Open site in broswer under tools in the tree menu on the left and enter http: // localhost: 8080/$ [prjname] in arguments. The suffix indicates the project name, you can find it on the right. Finally, check run in internal broswer.

6Configure Tomcat startup, similar to the above, just selectProgramC:/program files/Apache Software Foundation/tomcat 6.0/bin/tomcat6.exe, or change the name of start Tomcat server based on the location where Tomcat is installed. In arguments, enter // ts // tomcat6 and close console on exit.

7Create a project: file → new → project, select servlet web application, and then click Next. Note that it is best to Use lowercase letters to name the project in name. This is because Tomcat is case sensitive, while ant converts uppercase letters into lowercase letters during configuration and packaging. The $ [prjname] attribute of jceator is the original project name, if the name is case-sensitive, Tomcat cannot find the program when calling the program ).
Next, click the required libraries tab on the right. A bunch of Apis need to be added here. First of all is tomcat, click New, start a name such as Java EE web-Tomcat, click Add → add archive on the right to Tomcat 6.0/lib/catalina-ant.jar, tomcat 6.0/lib/servlet. add two jar files.
Similarly, JUnit and dom4j can be added as class libraries. These two tools also provideSource codeAnd javadoc documentation, which can be called at any time after being added.
After the addition is complete, check the corresponding database so that it can be called in the program. Click "finish" next to complete the creation.

8

Double-click build in file view. XML, find the <property name = "Manager. change Password "value =" admin "/> to <property name =" Manager. password "value =" "/>. Leave the password blank, which is consistent with that when Tomcat is installed.

Then, set <property name = "Catalina. home "value =" C:/program files/Apache Software Foundation/tomcat 5.5 "/> the path in this line is changed to the actual Tomcat path. Pay attention to the version.
Then find the <path> flag and change it to (for tomcat6 only)
<Path id = "compile. classpath">
<! -- Include all elements that Tomcat exposes to applications -->
<Pathelement location = "$ {Catalina. Home}/lib"/>
<Fileset dir = "$ {Catalina. Home}/lib">
<Include name = "*. Jar"/>
</Fileset>
</Path>

9View → toolbar → tools. Click the second tool button to start Tomcat. The command line window displays the Tomcat startup information. After the startup is complete, view → other Windows → ant view, expand the ant tree, and click the DIST item and install item in sequence. If the above settings are correct, they will succeed. Then, click the first tool button in the toolbar to open the webpage window. If you see the helloworld page, it will be done.

10To stop running tomcat, you only need to close the command line window. Sometimes you can stop it by clicking the lightning symbol on the toolbar. To remove a program from tomcat6/webapps, you only need to run remove under the ant tree.

------------------------------------------------------------ Split line only ---------------------------------------------------

Conclusion: After the web development environment is set up, you can proceed with development. It is critical that no environment variables are set from the beginning to the beginning. The reason for setting environment variables for all tools is that the default user develops the environment using the command line method (in fact, how is it possible ......), With the help of IDE, the environment variables can be reduced and the independence between projects can be improved.

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.