From 3cc75006c26b529229a309771597d51d118e0742 Mon Sep 17 00:00:00 2001 From: Dimitris Mouris Date: Fri, 24 Apr 2020 18:46:07 -0400 Subject: [PATCH] Update run instructions for Windows --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 50b1c3a..a654923 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,8 @@ The examples include: * OpenSSL * System (default) +#### Linux/MacOS + ##### 1) Key Encapsulation example To compile and run the KEM example, type: @@ -260,6 +262,18 @@ OpenSSL: 86 B6 46 9C 56 44 6B FB F8 B1 37 F0 86 4D 4D 74 0F FD 51 99 System (default): 37 55 6F 4F 03 53 BB 71 E8 70 C2 3D DF 85 69 57 30 CE FA 11 EF 50 8A F5 AE 25 35 6F 91 CF EC 1D ``` +#### Windows + +To run the examples on Windows, compilation is the same, but the command to run the program is slightly different since the PATH environment variable in Windows is separated by semicolons `;` instead of `:`. + +For instance, to compile and run the KEM example, type: +``` +$ javac -cp target/liboqs-java.jar examples/KEMExample.java +$ java -Djava.library.path=target/ -cp target/liboqs-java.jar;examples/ KEMExample +``` + +Similarly, you can run the `SigExample` and `RandExample` located in the [examples](./examples/) directory. + ## Troubleshooting * __Compiler errors__