6.1.8. Working with controller in Java¶
6.1.8.1. How to run example on Linux¶
Navigate to ximc-2.x.x./examples/testjava/compiled/ and run:
$ java -cp /usr/share/java/libjximc.jar:testjava.jar ru.ximc.TestJava
6.1.8.2. How to run example on Windows or MacOS¶
Navigate to ximc-2.x.x./examples/testjava/compiled/. Copy contents of ximc-2.x.x/ximc/win64 or ximc-2.x.x/ximc/macosx accordingly to the current directory. Then run:
$ java -classpath libjximc.jar -classpath testjava.jar ru.ximc.TestJava
6.1.8.3. How to modify and recompile an example¶
Navigate to examples/testjava/compiled. Sources are embedded in a testjava.jar. Extract them:
$ jar xvf testjava.jar ru META-INF
Then rebuild sources:
$ javac -classpath /usr/share/java/libjximc.jar -Xlint ru/ximc/TestJava.java
or for windows or mac:
$ javac -classpath libjximc.jar -Xlint ru/ximc/TestJava.java
Then build a jar:
$ jar cmf META-INF/MANIFEST.MF testjava.jar ru