[migration] Passage à Java 5
Bonjour à tous,
J'ai eu un problème de build dès que je suis passée en java 5 sur un projet. Je m'explique:
Sur une application qui utilisait le jdk 1.4.2, je suis chargée d'extraire des fonctionalités en utilisant l'AOP. Je suis passée au java 5 pour pouvoir utiliser les annotations.
Quand j'utilise aspectj sous 1.4.2 (et donc pas d'annotations) tout marche normalement! Sans problèmes!
Quand je suis passée en java 5, le module de GUI utilisant struts pose problème: j'ai l'erreur suivante:
[javac] error: error reading M_LIB\.classpath; error in opening zip file
où M_LIB est la libraire incluant les jars utilisables par mon appli.
Je note que quand je vire mon module d'interface (GUI) tout marhce bien, sauf que j'en ai besoin bien évidemment!
Si je suis bien l'erreur, c'ets un problème de fichier dans le classpath, sauf qu'il me semble que mon classpath ne contient pas de fichier posant problèmes!
Voici le .classpath en quesiton:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path=""/>
<classpathentry exported="true" kind="lib" path="ant-contrib-0.6.jar"/>
<classpathentry exported="true" kind="lib" path="castor-0.9.5.3-xml.jar"/>
<classpathentry exported="true" kind="lib" path="commons-beanutils.jar"/>
<classpathentry exported="true" kind="lib" path="commons-codec-1.2.jar"/>
<classpathentry exported="true" kind="lib" path="commons-collections-2.1.1.jar"/>
<classpathentry exported="true" kind="lib" path="commons-digester.jar"/>
<classpathentry exported="true" kind="lib" path="commons-el.jar"/>
<classpathentry exported="true" kind="lib" path="commons-fileupload-1.0.jar"/>
<classpathentry exported="true" kind="lib" path="commons-httpclient-2.0.jar"/>
<classpathentry exported="true" kind="lib" path="commons-logging-1.0.4.jar"/>
<classpathentry exported="true" kind="lib" path="commons-validator.jar"/>
<classpathentry exported="true" kind="lib" path="j2ee.jar"/>
<classpathentry exported="true" kind="lib" path="JCup.jar"/>
<classpathentry exported="true" kind="lib" path="jdbc-se2.0.jar"/>
<classpathentry exported="true" kind="lib" path="jdom.jar"/>
<classpathentry exported="true" kind="lib" path="jndi.jar"/>
<classpathentry exported="true" kind="lib" path="joram-client.jar"/>
<classpathentry exported="true" kind="lib" path="joram-connector.jar"/>
<classpathentry exported="true" kind="lib" path="joram-mom.jar"/>
<classpathentry exported="true" kind="lib" path="joram-shared.jar"/>
<classpathentry exported="true" kind="lib" path="jta1.0.1.jar"/>
<classpathentry exported="true" kind="lib" path="log4j-1.2.8.jar"/>
<classpathentry exported="true" kind="lib" path="Odis2Component.jar"/>
<classpathentry exported="true" kind="lib" path="ojdbc14_g.jar"/>
<classpathentry exported="true" kind="lib" path="ow_jonas_ant.jar"/>
<classpathentry exported="true" kind="lib" path="ow_monolog.jar"/>
<classpathentry exported="true" kind="lib" path="xerces.jar"/>
<classpathentry exported="true" kind="lib" path="xercesImpl.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path=""/>
</classpath>
La dernière ligne path="org.eclipse.jdt.launching.JRE_CONTAINER"/> poserait elle problème?! Je crois qu'elle reférence la jre utilisée par défaut en loccurence 1.5 dans mon cas!8O
JE suis bloquée sur ce point depuis un moment sans avoir d'idées particulières pour le résoudre! :cry:
Est ce que quelqu'un peut me donner des idées svp?
merci beuacoup en tout cas! :)
Mouna