qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Ritchie" <ritch...@apache.org>
Subject Re: Java-broker trunk build failed
Date Mon, 04 Aug 2008 09:47:38 GMT
2008/8/3 Rajika Kumarasiri <rajikacc@gmail.com>:
> Hi,
> I was trying to build the qpid java broker trunk with ant build, but end up
> with the following compilation errors.
>
> compile:
>     [echo] Targeting : 1.5
>    [javac] Compiling 2 source files to
> /home/rajika/projects/qpid/qpid/qpid/java/build/tools/classes
>    [javac]
> /home/rajika/projects/qpid/qpid/qpid/java/tools/src/main/java/org/apache/qpid/tools/JNDICheck.java:84:
> load(java.io.InputStream) in java.util.Properties cannot be applied to
> (java.io.FileReader)
>    [javac]             properties.load(new FileReader(new
> File(propertyFile)));
>    [javac]                       ^
>    [javac] 1 error
>
> BUILD FAILED
> /home/rajika/projects/qpid/qpid/qpid/java/build.xml:125: The following error
> occurred while executing this line:
> /home/rajika/projects/qpid/qpid/qpid/java/build.xml:50: The following error
> occurred while executing this line:
> /home/rajika/projects/qpid/qpid/qpid/java/module.xml:150: Compile failed;
> see the compiler error output for details.
>
> Any clue to fix this, thanks in advance.
>
> -Rajika
>
>
> --
> http://wso2.org/
> http://llvm.org/

Hi Rajika,

Thanks for pointing this out I use 1.6 in my IDE (targeted at 1.5) the
 Properties.load(Reader reader) method only came in with 1.6 so I'vll
change it to use a FileInputStream as there is no need for the
FileReader.

HTH

Martin
-- 
Martin Ritchie

Mime
View raw message