在oracle官网上下了一个petstore-1_3_2.zip,但是不知道如何安装,看了网上一些文章说的都是要安装j2eesdk,我电脑上也就安装了一个jdk不知道安装j2eesdk需不需要把jdk给卸载了?望大佬们赐教.

解决方案 »

  1.   

    我以前装过,觉得难度不大啊,难道现在安装比以前麻烦了。http://blog.csdn.net/braveboys/article/details/1908700http://blog.csdn.net/petit/article/details/2246911
      

  2.   

    我现在安了一个名叫java_ee_sdk-6u4-windows.exe版本的j2eesdk但关键是安装后里面只有一个glassfish其它的什么东西都没有,我都不知道该怎么配置了.网上说的也都是以前的版本.请问一下这个最新版本的该怎么配置啊?
      

  3.   

    j2eesdk 是用于J2EE开发的SDK,包含了J2SE之外,还包含了企业开发的一些包,glassfish是一个应用服务器,可以认为类似Tomcat的东西。除非你安装j2eesdk失败,或是你根本没找对目录,否则不可能只有glassfish而没有其它东西的。而且,你仅仅在安装j2eesdk而已,还没涉及到petstore,那来的什么配置呢。如果网上介绍的是旧版本,你完全可以变通一下,先下载一下旧版本,照葫芦画瓢,积累点经验先,因为我看得出来,你基础需要加强。
      

  4.   

    我在这个网址http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-sdk-6u3-downloads-439814.html下载的, 不信你自己可以安装试一下.
      

  5.   

    Installing the Demo
    This section describes how to install the Java Pet Store Demo. 
    System Requirements
    Before installing the demo, you need to install the following softwares:     1. Java 2 SDK, Standard Edition (J2SETM SDK), v1.4.1 or higher : download here                                         2. Java 2 SDK, Enterprise Edition (J2EETM SDK), v1.3.1: download hereRequired Environment Variables
    You must also set the environment variables JAVA_HOME and J2EE_HOME as follows:    JAVA_HOME must point to the root directory of your J2SE SDK installation. For example, if you installed the J2SE SDK in c:\j2sdk1.4.1 , then that path should be the value of JAVA_HOME.    J2EE_HOME must point to the root directory of your J2EE SDK installation. For example, if you installed the J2EE SDK in /usr/local/java/j2sdkee1.3.1 , then that path should be the value of J2EE_HOME.Also, your PATH must include the directory %JAVA_HOME%\bin (Windows) or $JAVA_HOME/bin (Unix). Otherwise, some of the build tasks will not work.
    Installing the Demo      Unzip the distribution bundle (petstore-1_3_2.zip) into any directory.                                   A directory called petstore1.3.2 will be created. The rest  of this documentation will refer to this directory as <petstore.home>   .    Run the setup script to install and configure message services and database resources.    If you are using Unix, open a shell prompt and enter these commands:    cd <petstore.home>
        sh setup.sh    If you are using Windows, open a command prompt and enter these commands:    cd <petstore.home>
        setup.bat    Start Cloudscape.    If you are using Unix, open a shell prompt and enter these commands:    cd $J2EE_HOME/bin
        cloudscape -start    If you are using Windows, open a command prompt and enter these commands:    cd %J2EE_HOME%\bin
        cloudscape.bat -start    Start the J2EE server.    If you are using Unix, open a shell prompt and enter these commands:    cd $J2EE_HOME/bin
        j2ee -verbose    If you are using Windows, open a command prompt and enter these commands:    cd %J2EE_HOME%\bin
        j2ee.bat -verbose    Run the setup script to deploy the applications.    If you are using Unix, open a shell prompt and enter these commands:    cd <petstore.home>
        sh setup.sh deploy    If you are using Windows, open a command prompt and enter these commands:    cd <petstore.home>
        setup.bat deploy我按照说明文档下了1.3版本的安装就有你们说的那些东西,我照着它的说明一步一步地往下安装, 但到了  Start Cloudscape.这个步骤时候, 它在cmd里面就一直停止不前,卡在那里一个多小时都没反应.后来我以为那个j2eesdk版本低了,所以就下了一人版本高的.也就出现了上面的问题.你说的glassfish我安装netbeans时安装了都用过,一些基本概念也都知道.但我按照petstore的说明文档就是安装不成功.我也不知道什么原因.