[sip-comm-dev] Error running javac.exe compiler


#1

Hi Guys,

Regarding the previous I had about the missing run.exe, I tried this advise
but instead
it gives me this error pointing at this line in my build.xml. I dont know
why it cant find my javac.exe,
I have installed jdk already.

<target name="compile" depends="init,version">
        <!--internal-target- compiles the entire project source tree -->
        <javac classpathref="compile.class.path" debug="true"
            deprecation="true" destdir="${dest}" nowarn="false"
            source="1.5" target="1.5" memoryMaximumSize="400M" fork="true">
                <src path="${src}"/>
                <src path="${src2}"/>
                <include name="**/*.java" />
                <exclude name="net/java/sip/communicator/launcher/*.java" />
                <compilerarg line="-Xlint -Xmaxwarns ${maxwarns}"/>
        </javac>

this is the build script with the error

Buildfile: C:\Users\diffy\alpha3 1897\sip-communicator\build.xml
init:
-pre-version:
version:
   [delete] Deleting 5 files from C:\Users\diffy\alpha3
1897\sip-communicator\classes
    [javac] Compiling 3 source files to C:\Users\diffy\alpha3
1897\sip-communicator\classes
     [echo] SIP Communicator version 1.0-alpha3-0.build.by.SVN
compile:
    [javac] Compiling 1266 source files to C:\Users\diffy\alpha3
1897\sip-communicator\classes

BUILD FAILED
C:\Users\diffy\alpha3 1897\sip-communicator\build.xml:231: Error running
javac.exe compiler

Total time: 8 seconds

Regards,
Diffy


#2

Hi Diffy,
are you using eclipse to compile and run the code??
If the answer is yes, you must say to eclipse where you have your jdk
installed. For this you have to:
1.- Clicked on the window tab in the toolbar.
2. On the left you will find a list... click on Java and open the submenu.
3.- Clicked on Installed JREs... and add the path where you have installed
your jdk.

Hope it helps you!!
Regards
Marta

···

2009/6/9 Diffy Romano <diffy@nextixsystems.com>

Hi Guys,

Regarding the previous I had about the missing run.exe, I tried this advise
but instead
it gives me this error pointing at this line in my build.xml. I dont know
why it cant find my javac.exe,
I have installed jdk already.

<target name="compile" depends="init,version">
        <!--internal-target- compiles the entire project source tree -->
        <javac classpathref="compile.class. path" debug="true"
            deprecation="true" destdir="${dest}" nowarn="false"
            source="1.5" target="1.5" memoryMaximumSize="400M" fork="true">
                <src path="${src}"/>
                <src path="${src2}"/>
                <include name="**/*.java" />
                <exclude name="net/java/sip/communicator/launcher/*.java"
/>
                <compilerarg line="-Xlint -Xmaxwarns ${maxwarns}"/>
        </javac>

this is the build script with the error

Buildfile: C:\Users\diffy\alpha3 1897\sip-communicator\build.xml
init:
-pre-version:
version:
   [delete] Deleting 5 files from C:\Users\diffy\alpha3
1897\sip-communicator\classes
    [javac] Compiling 3 source files to C:\Users\diffy\alpha3
1897\sip-communicator\classes
     [echo] SIP Communicator version 1.0-alpha3-0.build.by.SVN
compile:
    [javac] Compiling 1266 source files to C:\Users\diffy\alpha3
1897\sip-communicator\classes

BUILD FAILED
C:\Users\diffy\alpha3 1897\sip-communicator\build.xml:231: Error running
javac.exe compiler

Total time: 8 seconds

Regards,
Diffy