Author Topic: Cannot compile with Genesys Composer  (Read 3109 times)

Offline ricardo.sosa

  • Newbie
  • *
  • Posts: 16
  • Karma: 2
Cannot compile with Genesys Composer
« on: August 31, 2017, 02:40:49 PM »
Hello, I had developed several applications in Genesys Composer. Version: 8.1.400.36

I did compile them and everything was OK.

Now, 6 months later I am trying to recompile and I get this error.

[code]Buildfile: /C:/eclipse-juno (Composer)/configuration/org.eclipse.osgi/bundles/256/1/.cp/javaVoiceProjBuildScripts/build.xml

jspc:
    [echo] ProjName: AtencionPresencial

compile:
    [javac] C:\eclipse-juno (Composer)\configuration\org.eclipse.osgi\bundles\256\1\.cp\javaVoiceProjBuildScripts\build.xml:37: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

BUILD FAILED
C:\eclipse-juno (Composer)\configuration\org.eclipse.osgi\bundles\256\1\.cp\javaVoiceProjBuildScripts\build.xml:37: Class not found: javac1.8[/code]

I think that I did not, but I might have changed java versions or JAVA_HOME. Anyway, I have tried to configure in Composer and in JAVA_HOME with JDK 1.7 and JDK 1.8.

I did not change anything in my build.xml file. Anyway this is its content:

[code]<project name="Webapp Precompilation" default="all" basedir=".">
<property name="tomcat.home"  value="${eclipse.home}"/>
<property name="java_home"  value="${eclipse.home}/j2sdk"/>
<property name="voiceProjDir" value=""/>
<property name="projName" value=""/>

<property name="javaclog" location="${voiceProjDir}/${javac.log.path}" />

<target name="jspc">

<!-- Workaround for getting project Name for JavacErrorMarker-->
<echo>ProjName: ${projName}</echo>
<record name="${javaclog}" action="start" />
<taskdef classname="org.apache.jasper.JspC" name="jasper2" >
<classpath id="jspc.classpath">
<pathelement location="${java_home}/lib/tools.jar"/>
<fileset dir="${tomcat.home}/bin">
<include name="*.jar"/>
</fileset>
<fileset dir="${tomcat.home}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>


<jasper2
            validateXml="false"
            uriroot="${voiceProjDir}"
            webXmlFragment="${voiceProjDir}/WEB-INF/tomcat_generated_web.xml"
            outputDir="${voiceProjDir}/WEB-INF/src" />
<record name="${javaclog}" action="stop" />
</target>

<target name="compile">
<record name="${javaclog}" action="start" />
<javac optimize="off" debug="on" failonerror="true" srcdir="${voiceProjDir}" excludes="**/*.smap">
<classpath>
<pathelement location="${voiceProjDir}/WEB-INF/classes"/>
<fileset dir="${voiceProjDir}/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
<pathelement location="${tomcat.home}/common/classes"/>
<fileset dir="${tomcat.home}/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${tomcat.home}/bin">
<include name="*.jar"/>
</fileset>
</classpath>

<include name="**" />
<exclude name="tags/**" />

</javac>

<record name="${javaclog}" action="stop" />
</target>

<target name="all" depends="jspc,compile">

</target>

<target name="clean">
<delete file="${javaclog}" />
<delete dir="${voiceProjDir}/.WEB-INF"/> <!-- Clean any old existence of .WEB-INF -->
</target>

</project>[/code]

Thanks in advance.

Ricardo Sosa.

Offline ricardo.sosa

  • Newbie
  • *
  • Posts: 16
  • Karma: 2
Re: Cannot compile with Genesys Composer
« Reply #1 on: September 25, 2017, 03:32:55 PM »
I was able to solve this problem.

It seems that it is an issue with ant and java versions, as they explain in here: https://stackoverflow.com/questions/20702626/javac1-8-class-not-found

I tried to change in eclipse default jre, jre installed... and JAVA_HOME... but I had the same mistake.

Finally I uninstalled all my jdk8 and jdk7 and reinstalled jdk7. I am sure there must be an easier way to get this. Maybe changing Java configuration in panel control, but I am not sure.

Hope this helps.

Regards.