Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/376.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 执行google closure Compiler ant任务时JVM崩溃_Java_Ant_Jvm_Google Closure Compiler - Fatal编程技术网

Java 执行google closure Compiler ant任务时JVM崩溃

Java 执行google closure Compiler ant任务时JVM崩溃,java,ant,jvm,google-closure-compiler,Java,Ant,Jvm,Google Closure Compiler,我想在构建项目时使用googleclosurecompiler对javascript和css进行缩小build.xml已经按照要求准备好了 请查找下面的build.xml: <project name="ITV" default="run"> <property name="webroot" value="webapp/scripts" /> <!--<target name="doMinification" />-->

我想在构建项目时使用
googleclosurecompiler
对javascript和css进行缩小<代码>build.xml已经按照要求准备好了

请查找下面的
build.xml

<project name="ITV" default="run">

    <property name="webroot" value="webapp/scripts" />  
    <!--<target name="doMinification" />-->

    <tstamp>
        <format property="TODAY_MY" pattern="yyyyMMdd-HHmmss"  locale="en,UK" />
    </tstamp>

    <taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask" classpath="compiler.jar"/>
    <taskdef resource="net/sf/antcontrib/antcontrib.properties">
        <classpath>
            <pathelement location="ant-contrib-1.0b3.jar"/>
        </classpath>
    </taskdef>

    <!-- ================================================================== -->

    <target name="run">
        <foreach target="doMinification" param="foreach.file">
            <path id="jsFileset">
                <fileset id="jsFiles" dir="${webroot}/">
                    <exclude name="**/Libraries/**" />                
                    <include name="**/*.js"/>                   
                </fileset>
            </path>
        </foreach>
    </target>

    <!-- Minify JS -->  
    <target name="doMinification">

        <!-- This gets the filename without the directory path. -->
        <basename property="jsFileName" file="${foreach.file}"/>

        <!-- Using Javascript functions to work out the paths -->
        <script language="javascript"> <![CDATA[

            // get values
            fullPath = project.getProperty("foreach.file");
            fileOnly = project.getProperty("jsFileName");
            fileName = fileOnly.substr(0,fileOnly.lastIndexOf('.'));

            pathOnly = fullPath.substring(0, fullPath.indexOf(fileOnly));

            // store the result in a new property
            project.setProperty("directory",pathOnly);
            project.setProperty("fileName", fileName);

        ]]> </script>

        <!--<echo message="Compressing file ${jsFileName} in ${directory}" />
        <echo message="file only ${fileName}" />-->

        <jscomp compilationLevel="whitespace" warning="verbose" debug="true" languagein="ECMASCRIPT5" output="${directory}\${fileName}-min.js" forceRecompile="true">
            <externs dir="${webroot}/Libraries/Angular/">
                <file name="angular.min.js"/>
            </externs>
            <sources dir="${directory}">
                <file name="${jsFileName}"/>
            </sources>
        </jscomp>

    </target>

</project>
我曾多次尝试使用
ant
,但每次这样的消息出现时,
jvm
都会崩溃


原因是什么?我该如何解决?我的构建脚本有什么问题吗?

JRE版本:6.0_75-b13-那是很古老的。更新。@the8472-即使在更新了.JRE版本6.0_75-b13之后仍然存在同样的问题-那是古老的。更新。@the8472-即使在更新后仍然存在相同的问题。
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006d9a4351, pid=36500,
tid=37136
#
# JRE version: 6.0_75-b13
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.75-b01 mixed mode windows-amd64
 compressed oops)
# Problematic frame:
# V  [jvm.dll+0xd4351]
#
# An error report file with more information is saved as:
# C:\xxx\xxx\xxx\xxx\xxx\hs_err_pid36500.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp