http://java.sun.com/javase/6/docs/api/java/util/regex/Matcher.html#regionStart()

<http://java.sun.com/javase/6/docs/api/java/util/regex/Matcher.html#regionStart()>Is
it possible that Maven is using some other (older) Java installation?

On Tue, Nov 24, 2009 at 11:11 AM, dp <decimusphos...@gmail.com> wrote:

> [...@lothlorien ~]$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-21.b16.fc10-i386)
> OpenJDK Server VM (build 14.0-b16, mixed mode)
> [...@lothlorien ~]$
>
>
> On Nov 20, 6:01 pm, Kenton Varda <ken...@google.com> wrote:
> > What version of Java are you using?  It looks like the regular expression
> > API is missing some methods.
> >
> >
> >
> > On Fri, Nov 20, 2009 at 5:03 PM, dp <decimusphos...@gmail.com> wrote:
> > > Hi,
> >
> > > I needed some help with the Java version. Followed the steps in the
> > > README(s) [C++/Java], but got some errors with the test step. Have
> > > added the details below. (Also, saw similar errors with mvn package as
> > > well)
> >
> > > It would be great if someone could point me in the right direction.
> > > Thanks.
> >
> > > Regards,
> > > dp
> >
> > > Disclaimer: Java + protocol buffers neophyte. :)
> >
> > > Details:
> >
> > > [...@lothlorien java]$ mvn test
> > > [INFO] Scanning for projects...
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Building Protocol Buffer Java API
> > > [INFO]    task-segment: [test]
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] [antrun:run {execution: generate-sources}]
> > > [INFO] Executing tasks
> > > [INFO] Executed tasks
> > > [INFO] Registering compile source root /home/dp/protocol_buffers/
> > > protobuf-2.1.0/java/target/generated-sources
> > > [INFO] [resources:resources {execution: default-resources}]
> > > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> > > resources, i.e. build is platform dependent!
> > > [INFO] skip non existing resourceDirectory /home/dp/protocol_buffers/
> > > protobuf-2.1.0/java/src/main/resources
> > > [INFO] [compiler:compile {execution: default-compile}]
> > > [INFO] Compiling 2 source files to /home/dp/protocol_buffers/
> > > protobuf-2.1.0/java/target/classes
> > > ----------
> > > 1. ERROR in /home/dp/protocol_buffers/protobuf-2.1.0/java/src/main/
> > > java/com/google/protobuf/TextFormat.java (at line 440)
> > >        while (pos < matcher.regionStart()) {
> > >                             ^^^^^^^^^^^
> > > The method regionStart() is undefined for the type Matcher
> > > ----------
> > > 2. ERROR in /home/dp/protocol_buffers/protobuf-2.1.0/java/src/main/
> > > java/com/google/protobuf/TextFormat.java (at line 451)
> > >        if (matcher.regionStart() == matcher.regionEnd()) {
> > >                    ^^^^^^^^^^^
> > > The method regionStart() is undefined for the type Matcher
> > > ----------
> > > 3. ERROR in /home/dp/protocol_buffers/protobuf-2.1.0/java/src/main/
> > > java/com/google/protobuf/TextFormat.java (at line 451)
> > >        if (matcher.regionStart() == matcher.regionEnd()) {
> > >                                             ^^^^^^^^^
> > > The method regionEnd() is undefined for the type Matcher
> > > ----------
> > > 4. ERROR in /home/dp/protocol_buffers/protobuf-2.1.0/java/src/main/
> > > java/com/google/protobuf/TextFormat.java (at line 455)
> > >        matcher.usePattern(TOKEN);
> > >                ^^^^^^^^^^
> > > The method usePattern(Pattern) is undefined for the type Matcher
> > > ----------
> > > 5. ERROR in /home/dp/protocol_buffers/protobuf-2.1.0/java/src/main/
> > > java/com/google/protobuf/TextFormat.java (at line 458)
> > >        matcher.region(matcher.end(), matcher.regionEnd());
> > >                                              ^^^^^^^^^
> > > The method regionEnd() is undefined for the type Matcher
> > > ----------
> > > 6. ERROR in /home/dp/protocol_buffers/protobuf-2.1.0/java/src/main/
> > > java/com/google/protobuf/TextFormat.java (at line 462)
> > >        matcher.region(pos + 1, matcher.regionEnd());
> > >                                        ^^^^^^^^^
> > > The method regionEnd() is undefined for the type Matcher
> > > ----------
> > > 7. ERROR in /home/dp/protocol_buffers/protobuf-2.1.0/java/src/main/
> > > java/com/google/protobuf/TextFormat.java (at line 474)
> > >        matcher.usePattern(WHITESPACE);
> > >                ^^^^^^^^^^
> > > The method usePattern(Pattern) is undefined for the type Matcher
> > > ----------
> > > 8. ERROR in /home/dp/protocol_buffers/protobuf-2.1.0/java/src/main/
> > > java/com/google/protobuf/TextFormat.java (at line 476)
> > >        matcher.region(matcher.end(), matcher.regionEnd());
> > >                                              ^^^^^^^^^
> > > The method regionEnd() is undefined for the type Matcher
> > > ----------
> > > 8 problems (8 errors)[INFO]
> > >
> ------------------------------------------------------------------------
> > > [ERROR] BUILD FAILURE
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Compilation failure
> > > Failure executing javac, but could not parse the error:
> >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Total time: 18 seconds
> > > [INFO] Finished at: Fri Nov 20 16:46:29 GMT-08:00 2009
> > > [INFO] Final Memory: 35M/42M
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [...@lothlorien java]$ protoc --version
> > > libprotoc 2.1.0
> > > [...@lothlorien java]$
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Protocol Buffers" group.
> > > To post to this group, send email to proto...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> <protobuf%2bunsubscr...@googlegroups.c­om>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/protobuf?hl=.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.


Reply via email to