Skip to content

Commit

Permalink
Update run instructions for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jimouris committed Apr 24, 2020
1 parent fd612fa commit 3cc7500
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ The examples include:
* OpenSSL
* System (default)

#### Linux/MacOS

##### 1) Key Encapsulation example

To compile and run the KEM example, type:
Expand Down Expand Up @@ -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__
Expand Down

0 comments on commit 3cc7500

Please sign in to comment.