bonjour,
Après de longue recherche , je suis coincé et je commence à etre au bout.

Je vous explique mon soucis:
je souhaite compiler 2 class en java (pas de problème) ,faire un header (pas de soucis) et compiler le c grace a gcc ,le tout grace à ant.

En gros je fait du jni.

Donc au niveau de la compilation j'ai écris ceci pour le .C

<project name="LoadDll" default="product" basedir="." xmlns:cpptasks="antlib:org.sf.net.antcontrib.cpptasks">

<echo message="Compile 1"/>
<!--Compilation ComnJni.c GCC-->
<property name="gcc" location = "C:/MinGW/bin/gcc.exe"/>

<cc name="gcc" objdir="${build}/native" outfile="${build}/native/CommJni" outtype="shared">
<fileset dir="${src}/TestDLL/native" includes="**/CommJni.c" />
<compilerarg value="-g" />

<!-- <compilerarg value="-ansi"/>
-->
<!-- <compilerarg value="-pedantic"/>
-->
<compilerarg value="-Wno-long-long" />
<linkerarg value="-Wl" />
<linkerarg value="--no-undefined" />
<linkerarg value="-Wl" />
<linkerarg value="--add-stdcall-alias" />

<sysincludepath location="C:/MinGW/bin" />
<sysincludepath location="${java_1_5_path}/include" />
<sysincludepath location="${java_1_5_path}/include/win32" />
<includepath location="${build}/native/include" />
</cc>
<echo message="Compile 3"/>

<!-- <copy file="${build}/native/libCommJni.so" tofile="${apiDir}/CommJni.dll" />
<copy file="${build}/native/libCommJni.so" tofile="${cardApiDir}/CommJni.dll" />
<copy todir="${build}/lib">
<fileset dir="${apiDir}" />
</copy>-->
</target>


Et lors du build , il me répond :
build-native:
[echo] Compile 1
[cc] 1 total files to be compiled.

BUILD FAILED
C:\worskpace\LoadAPI\build.xml:38: Could not launch gcc: java.io.IOException: Cannot run program "gcc" (in directory "C:\worskpace\LoadAPI\build\native"):
CreateProcess error=2, Le fichier spécifié est introuvable
Je bosse sous XP.J'ai installé MingW.
Je pense qu'il manque un lien pour trouver le gcc ou quelquechose comme ca.
SI vous pouviez maider

Merci d'avance