I installed the java libraries using `mvn install` in protobuf-2.3.0/ java, but still get the same errors when trying to do `make java` in protobuf-2.3.0/examples. I've never used Maven before - is there something I need to set up so javac knows where to look to find the jarfile maven created (~/.m2/repository/com/google/protobuf/protobuf- java/2.3.0/protobuf-java-2.3.0.jar)?
I've tried % export CLASSPATH=~/.m2/repository % make java and % export CLASSPATH=~/.m2/repository/com/google/protobuf/protobuf-java/ 2.3.0/ % make java But both seem to give the same error. What should I be doing? On Aug 31, 7:51 pm, Kenton Varda <ken...@google.com> wrote: > Please read the readmes. Running "make install" in the root directory > installs the C++ libraries only. You need to install the Java and Python > versions separately by following the instructions in the corresponding > directories. > > On Tue, Aug 31, 2010 at 3:25 AM, David Portabella < > > david.portabe...@gmail.com> wrote: > > Hello, > > > I don't manage to compile the java example. > > I do as follows (I've tried with OSX and Cygwin, with the exact same > > results): > > > Download protobuf-2.3.0.zip from:http://code.google.com/p/protobuf/ > > unzip protobuf-2.3.0.zip > > cd protobuf-2.3.0 > > ./configure > > # ./configure --disable-shared # in case of Cygwin > > make > > make check > > make install > > > # note: compilation fails if the directory name contains blank spaces. > > > export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig > > cd examples > > make cpp > > ./add_person_cpp test.bin # this works. > > > make java > > -- javac AddPerson.java ListPeople.java com/example/tutorial/ > > AddressBookProtos.java > > -- com/example/tutorial/AddressBookProtos.java:12: package > > com.google.protobuf does not exist > > > cp -r ../java/src/main/java/com/* com/ # I shouldn't need to do > > this. i guess that the makefile should include the classpath. > > make java > > -- javac AddPerson.java ListPeople.java com/example/tutorial/ > > AddressBookProtos.java > > -- ./com/google/protobuf/Descriptors.java:33: package > > com.google.protobuf.DescriptorProtos does not exist > > > find .. -iname "*DescriptorProtos*" > > -- nothing, this file does not exist. > > > Where should I get this class from > > com.google.protobuf.DescriptorProtos? > > > Many thanks, > > David > > > -- > > 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.