add instructions for compilation

This commit is contained in:
Xiao X
2026-05-25 22:29:01 -04:00
committed by GitHub
parent 6983056feb
commit bc3809f2f5
+11
View File
@@ -1 +1,12 @@
A multi-purpose Cryptography library in Java. Working on it day by day, slowly. Someday this will become used, today is not that day.
Use `setopt interactivecomments` (zsh only) to disable errors like `zsh: command not found: #`
Ensure Java + javac are installed, on MacOS it can be installed with Homebrew by running `brew install openjdk`
To compile on MacOS 26 (may work on other OS, idk):
1- mkdir -p out # create output directory
2- javac -d out $(find src -name "*.java") # converts .java into .class bytecode
3- jar cfe XACrypto.jar de.caydenno1.xacrypto.XACrypto -C out . # package the .class files into a .jar
4(optional)- jar tf XACrypto.jar # view the contents of the jarfile