Develop the first J2EE, configure the J2EE environment and cloudscape Database

Source: Internet
Author: User
Author: Weng Chi original Email: wcy@email.com published forum: www.javaresearch.org
[Editor's note] I wrote this article to help beginners of J2EE in China, hoping to help Java enthusiasts. If you need to reprint the content, contact the author.

This article will teach J2EE beginners step by step to configure a standard J2EE environment
I tried to configure the J2EE development environment step by step, and finally started the cloudview of the cloudscape database. The main reason is that I did not carefully explain it. Approximate disconnection

After a week of continuous research, I will share my experience with you.
First, confirm that you have downloaded the JDK version j2se1.3.1 _ 02 or above and j2sdkee. 1.3.1 these software can go to Sun's website to find the highest version of http://java.sun.com currently j2se

Is j2se1.4. Then install the above software. My installation directory is in H: disk. Before installation, if you have installed JDK of different versions, uninstall them before installation. After installation,

Set classpath. Windows as follows:
Set java_home = H:/jdk1.3.1.2
Set j2ee_home = H:/j2sdkee1.3.1
Set classpath = H:/jdk1.2.2/JRE/lib/i18n. jar;
H:/jdk1.2.2/JRE/lib/jaws. jar;
H:/jdk1.2.2/JRE/lib/plugprov. jar;
H:/jdk1.2.2/lib/dt. jar;
H:/jdk1.2.2/lib/tools. jar;
H:/j2sdkee1.3.1/lib/ejb10deployment. jar;
H:/j2sdkee1.3.1/lib/J2EE. jar;
H:/j2sdkee1.3.1/lib/jhall. jar;
H:/j2sdkee1.3.1/lib/j2els ls. jar;
H:/j2sdkee1.3.1/LIB;

The above is the directory on my machine. If you install it on different directories, please change it on your own
In this way, you can smoothly start J2EE and run the J2EE. BAT file in the directory H:/j2sdkee1.3.1/bin. Start the J2EE Service
Open the browser and enter the address http: // localhost: 8000/index.html. You can see that the home page is correct.

Next, start the cloudscape database that comes with J2EE, which is also simple
Put H:/j2sdkee1.3.1/lib/system/cloudutil. jar;
H:/j2sdkee1.3.1/lib/cloudscape/cloudclient. jar;
H:/j2sdkee1.3.1/lib/cloudscape/rmijdbc. jar;
H:/j2sdkee1.3.1/lib/system/cloudscape. jar;
Add the following command to the directory H:/j2sdkee1.3.1/bin to start the cloudscape database.

The key issue lies in how to bring up the graphic management interface of the cloudscape database! In the command line mode, type Java com. cloudscape. Tools. cview.
Generally, errors occur. Why? First, check whether your JDK version is correct, such as 1.3.1 _ 02 or later, or 1.4.
Second, the key is that the cloudview in Sun's J2EE cannot work in the cloudscape4.0.6 that he has attached (I really don't know what Sun is doing :))
Here is the original statement on the IBM Website: the Java 2 SDK, Enterprise Edition v. 1.3.1 includes des cloudscape 4.0.6 but has des a version of cloudview which will not function with the 4.0.6 system. So proceed to the next step! Two jar files are required. Yes
Cloudview. jar and
JD. Jar
Put these two files in the cloudscape directory under j2sdkee1.3.1. I need to add two classpaht paths here.
H:/j2sdkee1.3.1/cloudscape/cloudview406.jar;
H:/j2sdkee1.3.1/cloudscape/logs. Jar
OK! Success! Now let's see how to start cloudview, and type
Java-dcloudscape. system. Home = % j2ee_home %/cloudscape com. cloudscape. Tools. cview
Here-dcloudscape. system. Home is the path for storing the database. This path can be changed when the database is created.
% J2ee_home %/cloudscape is the default working directory of cloudscape.
You can also remove the path after-dcloudscape. system. Home, but remember to create the database in the change path. Otherwise, the J2EE server cannot find it!
Now, you will find a graphic interface. I will watch you with a telescope! :)

Next, you can develop the first J2EE program. There are many examples on the Internet. Here we reference Hu Deping's article.
J2 programming started
You can quickly develop a J2EE program :)

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.