Closed chengm349 closed 3 years ago
@chengm349 You should either:
sbe-all
jar, i.e. run:
java -Dsbe.target.language=cpp -jar ./simple-binary-encoding/sbe-all/build/libs/sbe-all-1.23.1-SNAPSHOT.jar ilinkbinary.xml
java -Dsbe.target.language=cpp -cp ./simple-binary-encoding/sbe-tool/build/libs/sbe-tool-1.23.1-SNAPSHOT.jar;~/.gradle/caches/modules-2/files-2.1/org.agrona/agrona/1.11.0/22fcd9d1091f13e7fcd89cc16784f24dfc843c59/agrona-1.11.0.jar uk.co.real_logic.sbe.SbeTool ilinkbinary.xml
Note, that you also have to specify the main class uk.co.real_logic.sbe.SbeTool
in this case.
I ran
$ ./gradlew successfully and only got sbe-tool-1.23.1-SNAPSHOT.jar under sbe-tool/build/libs I tried to run command
$ java -Dsbe.target.language=cpp98 -jar ./simple-binary-encoding/sbe-tool/build/libs/sbe-tool-1.23.1-SNAPSHOT.jar ilinkbinary.xml
but got error: no main manifest attribute, in ./simple-binary-encoding/sbe-tool/build/libs/sbe-tool-1.23.1-SNAPSHOT.jar