NoSuchMethodError: Matcher.quoteReplacement
Jack Bates
3b5hkp at nottheoilrig.com
Tue Jan 13 03:54:51 UTC 2015
On 12/01/15 12:09 PM, gitne at gmx.de wrote:
> On 01/11/2015 at 10:05 PM Jack Bates wrote:
>> I get the following error when I try to build 2.5.3:
>>
>> [...]
>> /home/nottheoilrig/icedtea-2.5.3/generated.build/com/sun/corba/se/impl/logging/UtilSystemException.java
>> An exception has occurred in the compiler (1.7.0_71_bootstrap). Please
>> file a bug at the Java Developer Connection
>> (http://java.sun.com/webapps/bugreport) after checking the Bug Parade
>> for duplicates. Include your program and the following diagnostic in
>> your report. Thank you.
>> java.lang.NoSuchMethodError: method
>> java.util.regex.Matcher.quoteReplacement with signature
>> (Ljava.lang.String;)Ljava.lang.String; was not found.
>
> This looks very odd. Did you compile the JDK yourself? What distro and/or JDK
> version are you using?
>
>> [...]
>>
>> Any idea how to resolve it?
>> Can I provide any additional details?
>> I downloaded the IcedTea 2.5.3 archive,
>> ran ./configure and make.
>>
>> The following are lines from my config.log,
>> are they helpful?
>>
>> [...]
>> configure:11304: checking if java.util.regex.Matcher.quoteReplacement is
>> missing
>> configure:11354: result: yes
>> [...]
>> configure:11820: checking if the VM supports 1.7 bytecode
>> javac: invalid source release: 7
>
> Something really strange is going on with your compiler. Since it is supposed
> to be JDK 1.7 it should also support Java Langauage Specification version 7.
> Please check your JDK installation and/or paths and environment variable for
> proper JAR file resolution.
The error occurs when I try to build IcedTea 2.5.3,
however I think the build runs javac that's already on my system?
which is from this package:
https://packages.debian.org/squeeze/openjdk-6-jdk
i.e. JDK 1.6? Does that make any more sense?
$ javac -version
javac 1.6.0_31
More information about the distro-pkg-dev
mailing list