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. For more options, visit this group at http://groups.google.com/group/protobuf?hl=.