Practical practices: Developing a shopping website (2)

Source: Internet
Author: User
Practice: J2EE-Development and shopping website (2)-General Linux technology-Linux programming and kernel information. For details, see the following. Step 3: install and configure jBuilder 7

?? Here I installed weblogic
?? Do not install jBuilder in a directory with spaces, such as Prograih Files or a Chinese directory. Otherwise, errors may occur during compilation. The installation is very simple. You don't have to talk about the configuration here.

?? Tip 1: We think jBuilder may be slow to run, because jbuilder uses 32 MB memory by default. If your memory is large enough, you can increase it by a bit. The specific method is as follows,

?? Find the jBuilder. config file in the jbuilder installation directory BIN, edit it, and change the parameters after Vmparams. My configuration is
?? Vmparam-Xms64M
?? Vmparam-Xmx64M
?? Start jBuilder. Under About Jbuilder under Help, you can see that Java heap has been added and runs much faster. At least you can compile large files later.

?? Tip 2: When running jBuilder, it is inconvenient to compile the code. The selected code is always different from what you actually see. This is because of the font. The solution is as follows, in the Display under Editor Options of Tools, change the font Family in Editor Font to the new.



Configure weblogic Service

?? JBuilder can be used to integrate weblogic, so that the EJB developed under jBuilder or the website packaged into WAR can be directly released to weblogic!

?? Select Configure Servers under tools

?? In the following user Home, you can see "webLogic Application Server 6. x-7.0, click it, Server Settings will appear on the right, Enable server is checked, in the General below select home directory and Working directory: I am "D: /bea/wlserver6.1"



?? Click Custom item
?? Select JDK installation directory: D:/bea/jdk131"
?? BEA home directory: the installation directory is "D:/bea". Enter the password and the Domain name and Server name you set when installing weblogic, if the directory is selected correctly, the version number of your weblogci is automatically displayed in the following version. Click OK!



?? Next, let's conduct an experiment to see if weblogic is integrated with jbuilder!
?? First, create a new project, select Application, enter your project name in name, and click Finish.




?? When creating a project, check whether the Server uses Weblogic.



?? Select "new" and select "Web" under the existing Object Gallery. Because we want to publish a WEB Application, select the Web Application and name it. This will be the name of the website package, specify its working directory and select Generate war. Click OK.



?? Next, we need to create a new JSP file. Click "CREATE" on the same Page. Select "assumerver Page" on the WEB and click "Next" by default. Then, a JAVABEAN is automatically created.

?? First, we need to compile the automatically generated BEAN into a class, select it, right-click it, and select Rebuild compile from the menu that appears.



?? Compile your Web Application and it will automatically generate the WAR package. Click this package to release it.



?? Publish website



?? Enter http: // 127.0.0.1: 7001/tds/index. jsp in the browser to view the page.



?? PS: WAR is the entire web appliction compressed package. Simply put, the point is that the whole website we are doing can be packaged into a package and then published using weblogic, of course weblogic also supports directory Publishing!

(Unfinished, to be continued)
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.