Develop the first Java EE, configure Java environment and Cloudscape database

Source: Internet
Author: User
Tags command line interface
j2ee| Data | database: Ong original email:wcy@email.com published forum: www.javaresearch.org


"Knitting Press" in order to help the domestic beginners, wrote this article, expect to be able to help the vast number of Java enthusiasts.  If you need to reprint, please contact the author.





This article will be a step-by-step to teach the beginners to configure a standard Java environment


himself to find a step-by-step configuration of the development environment of the Java EE, to finally start the Cloudscape database Cloudview is very time-consuming, the main reason is not carefully read the instructions. Probably broke
.




Intermittent study for one weeks now share my experience with you.


First, make sure you download the JDK version above j2se1.3.1_02 and j2sdkee.1.3.1 the software can go to the Sun's web site to find http://java.sun.com the highest version of the current J2SE





is j2se1.4. Then install the above software. My installation directory is in H: Disk. If you have previously installed different versions of the JDK before installation, uninstall and then install. After the installation is ready,





Please set the classpath.windows settings below:


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\j2eetools.jar;


H:\j2sdkee1.3.1\lib;





above is the directory on my machine, if you are installed in a different directory, please change the


this can smoothly start Java EE, to h:\j2sdkee1.3.1\bin directory execution J2ee.bat file. Start the Java EE service


Open the browser to typing the address http://localhost:8000/index.html can see the first page on the description of the





Next start the Cloudscape database with Java-EE, this is also simple


the 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;


join on it, on the command line to the H:\j2sdkee1.3.1\bin directory to play Cloudscape-start can start the Cloudscape database





key problem is how to pull out the Cloudscape database graphics management Interface! You type the Java COM.cloudscape.tools.cview on the command line


generally appear to be wrong. What's the reason? First, you want to see your JDK version right, is not 1.3.1_02 above or 1.4.


Second, the key of the key, the original sun in the Java EE Cloudview is not in his accompanying cloudscape4.0.6 work (I really do not know what the Sun is doing:)


here is a quote on the IBM website: the Java 2 SDK, Enterprise Edition v. 1.3.1 includes Cloudscape 4.0.6 but includes a version of Cloud View which won't function with the 4.0.6 system. So the gay door goes to the next one! Two more jar files are needed here. Download Address is


Cloudview.jar and


Jd.jar


put these two files under j2sdkee1.3.1 Cloudscape directory, I also need to add two classpaht path


H:\j2sdkee1.3.1\cloudscape\cloudview406.jar;


H:\j2sdkee1.3.1\cloudscape\jh.jar


ok! together! Now see how to start Cloudview, type
at the command line

Java-dcloudscape.system.home=%j2ee_home%\cloudscape COM.cloudscape.tools.cview


here-dcloudscape.system.home is the path to setting up the database, which can be changed when the database is created


%j2ee_home%\cloudscape is the default working directory for Cloudscape


can also be-dcloudscape.system.home after the path to remove, but to remember that the database should be built in a modified path, otherwise Java EE server could not find it!


OK, next you will find a graphical interface up, I hold the telescope to look at you! :)





Next you can develop the first Java EE program, there are many examples on the internet, here quotes Hu deping an article.


J2 Programming Start


you can quickly develop a Java 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.