, .
maven. : http://maven.apache.org/download.cgi
"" PATH. , JAVA_HOME JDK.
, ββ .
java, README ( , ). src, " " protoc.exe, .jar. , protoc.exe protobuf src. linux, .
protoc.exe src, mvn package " java > . target, java. .jar.
, , :
maven: C:\MyPrograms\apache-maven-3.1.0\
protoc src ( ): D:\Downloads\protobuf-2.5.0\
protoc ( protoc.exe): D:\Downloads\protoc-2.5.0-win32\
java jdk: C:\Program Files\Java\jdk1.7.0_21
SET PATH=%PATH%;C:\MyPrograms\apache-maven-3.1.0\bin
SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_21
cd D:\Downloads\protobuf-2.5.0\
copy D:\Downloads\protoc-2.5.0-win32\protoc.exe src
cd java
mvn package
NOTE: if you are using Linux, you will need to replace the copy with protoc compilation. Also, setting the path is most likely not needed or will not be done in another way.
therefore instead of:
copy D:\Downloads\protoc-2.5.0-win32\protoc.exe src
you will have:
./configure
make
make check
make install
(just make sure the generated binary is copied to the right folder)
source
share