在配置环境变量的时候,发现java\jre\lib\jaws.jar,lib下面应该有个jaws.jar文件,可我找了找,却怎么也找不到这个文件,整个电脑都找了一遍也没发现这个文件。我又重新安装了jdk,结果也没找到。这是怎么个回事?
     帮忙给解释一下。我的jdk是1.4.2版本的。(因为tomcat需要这个版本的)
     

解决方案 »

  1.   

    你说的那个文件我也没找到···但是我找到了javaws.jar这个文件··我的是JDK1.5.0的
      

  2.   

    upCSDN论坛浏览器:浏览、发帖、回复、结贴自动平均给分,下载地址:http://CoolSlob.ys168.com
      

  3.   

    可很多教程上,包括网上介绍的环境变量配置都有这一项%java%\jre\lib\jaws.jar啊。这到底是怎么个回事?   怎么学个jsp老是出现些莫名其妙的事儿??!
      

  4.   

    http://www.huihoo.com/jboss/examples/jaws.htm
     Install JAWS Example
    JBoss JAWS Example converted to Eclipse project.Click File, click Import..., click Existing Project into Workspace, click Next, click Browse..., navigate to C:\eclipse\workspace\jaws, click Finish. 
    Expand jaws project in Eclipse. 
    Right click on build.xml, click Run Ant..., check ear-dir and click Finish. 
    Click jaws project, click Project, click Rebuild Project.  You do not need to run the Ant script again unless you change a deployment descriptors in the resources folder. 
    From My Computer navigate to %JBOSS_DIST%\server\default\conf, open jboss-service.xml in Wordpad, go to line with:
        <attribute name="URLs">
        ./deploy
        </attribute>Right after ./deploy add ,C:\eclipse\workspace\jaws\jaws.ear so it should look like:    <attribute name="URLs">
        ./deploy,
        C:\eclipse\workspace\jaws\jaws.ear
        </attribute>
    Save changes and exit Wordpad. 
    Working with the JAWS Example in Eclipse
    Run Eclipse, in Package Explorer you should see jaws.  jaws contains all the EJBs for the Jaws Example.  It uses one source folder src, has two packages org.jboss.docs.cmp.jaws.bean, org.jboss.docs.cmp.jaws.interfaces, which contain the EJB source, and an ant file build.xml to build the ear folder.  Click JBoss, Start JBoss (if not already started) and wait for:10:33:48,077 INFO [Server] JBoss (MX MicroKernel) [3.0.1RC1 Date:200206291622] Started in 0m:12s:125msin the Console output.  This means JBoss is up and running. 
    Look for the following in the console:
    11:36:35,806 INFO [MainDeployer] Starting deployment of package: file:/C:/eclipse/workspace/jaws/jaws.ear/jaws.jar/
    11:36:35,993 INFO [EjbModule] Creating
    11:36:36,009 INFO [EjbModule] Deploying ClassBean
    11:36:36,603 INFO [JDBCInitCommand] Created table 'CLASS' successfully.
    11:36:36,634 INFO [EjbModule] Created
    11:36:36,634 INFO [EjbModule] Starting
    11:36:36,743 INFO [EjbModule] Started
    11:36:36,743 INFO [MainDeployer] Deployed package: file:/C:/eclipse/workspace/jaws/jaws.ear/jaws.jar/
    11:36:36,743 INFO [MainDeployer] Starting deployment of package: file:/C:/eclipse/workspace/jaws/jaws.ear/META-INF/
    11:36:36,743 INFO [MainDeployer] Deployed package: file:/C:/eclipse/workspace/jaws/jaws.ear/META-INF/ 
    This shows table using the JAWS mapping was created OK and the EJB deployed. 
     
    Home | JBoss Examples Last updated on 08/07/2002 
     
      

  5.   

    楼上不都说了嘛!他的JDK是1.5的,
    我的JDK也是1.4.2的我也没有找到你说的那个文件,
    好些书上说的要在环境变量里要配置的这个东东,我估计是指1.5的,不是指1.4的.